diff options
author | Tomás Touceda <chiiph@leap.se> | 2013-08-07 15:35:03 -0300 |
---|---|---|
committer | Tomás Touceda <chiiph@leap.se> | 2013-08-07 15:35:03 -0300 |
commit | 7ceb42da678f5e2acca40ba968e4a63925d44b01 (patch) | |
tree | 7eabca227208ba75be922294f06ba339b7132023 /src/leap | |
parent | ae3e0b5443193dc80099742ca2a61c1bb659c9d6 (diff) | |
parent | 335d73ee94976300aae156084e8e275e98ee5ea5 (diff) |
Merge remote-tracking branch 'ivan/bug/fix-old-parameter-error' into develop
Diffstat (limited to 'src/leap')
-rw-r--r-- | src/leap/common/config/baseconfig.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/leap/common/config/baseconfig.py b/src/leap/common/config/baseconfig.py index ba87df9..e310bc0 100644 --- a/src/leap/common/config/baseconfig.py +++ b/src/leap/common/config/baseconfig.py @@ -75,6 +75,8 @@ class BaseConfig: def _get_spec(self): """ Returns the spec object for the specific configuration. + + :rtype: dict or None if the version is not supported. """ leap_assert(self._api_version is not None, "You should set the API version.") @@ -99,7 +101,7 @@ class BaseConfig: :type api_version: str """ self._api_version = version - leap_assert(self._get_schema(self._api_version) is not None, + leap_assert(self._get_schema() is not None, "Version %s is not supported." % (version, )) def get_path_prefix(self): |