# Path: ethronsoft/gcspypi/exceptions/boundary_errors.py
# class InvalidParameter(Exception):
#     pass


from ethronsoft.gcspypi.exceptions import InvalidParameter
import functools
from __future__ import division


def complete_version(v):
    """adds missing '0' to a version that has less than 3 components
    
    Arguments:
        v {str} -- The version to update
    
    Returns:
        str -- The modified version
    """

    tokens = [x for x in v.split(".") if x.strip()]
    if len(tokens) > 3:

# Path: ethronsoft/gcspypi/exceptions/boundary_errors.py
# class InvalidParameter(Exception):
#     pass


# Path: ethronsoft/gcspypi/utilities/version.py
from ethronsoft.gcspypi.exceptions import InvalidParameter
import functools

from __future__ import division


def complete_version(v):
    """adds missing '0' to a version that has less than 3 components
    
    Arguments:
        v {str} -- The version to update
    
    Returns:
        str -- The modified version
    """

    tokens = [x for x in v.split(".") if x.strip()]
    if len(tokens) > 3:

        raise InvalidParameter("Invalid Version")