From 335d73ee94976300aae156084e8e275e98ee5ea5 Mon Sep 17 00:00:00 2001 From: Ivan Alejandro Date: Wed, 7 Aug 2013 15:23:42 -0300 Subject: Fix old parameter error. --- src/leap/common/config/baseconfig.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/leap') 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): -- cgit v1.2.3