forked from LBRYCommunity/lbry-sdk
refactored one more assert
This commit is contained in:
parent
4f6f226b18
commit
fb6545481b
1 changed files with 2 additions and 1 deletions
|
@ -352,7 +352,8 @@ class Config(object):
|
|||
return env_settings
|
||||
|
||||
def _assert_valid_data_type(self, data_type):
|
||||
assert data_type in self._data, KeyError('{} in is not a valid data type'.format(data_type))
|
||||
if not data_type in self._data:
|
||||
raise AssertionError(KeyError('{} in is not a valid data type'.format(data_type)))
|
||||
|
||||
def get_valid_setting_names(self):
|
||||
return self._data[TYPE_DEFAULT].keys()
|
||||
|
|
Loading…
Add table
Reference in a new issue