summaryrefslogtreecommitdiff
path: root/src/leap
diff options
context:
space:
mode:
authorIvan Alejandro <ivanalejandro0@gmail.com>2013-08-07 15:23:42 -0300
committerIvan Alejandro <ivanalejandro0@gmail.com>2013-08-07 15:30:37 -0300
commit335d73ee94976300aae156084e8e275e98ee5ea5 (patch)
tree7eabca227208ba75be922294f06ba339b7132023 /src/leap
parent011e8802b248ffa39fa40d4931d2577256d01bd7 (diff)
Fix old parameter error.
Diffstat (limited to 'src/leap')
-rw-r--r--src/leap/common/config/baseconfig.py4
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):