diff --git a/ennstatus/api/functions.py b/ennstatus/api/functions.py --- a/ennstatus/api/functions.py +++ b/ennstatus/api/functions.py @@ -29,8 +29,7 @@ def check_bridge(key, server): else: if not isinstance(server[key], bool): error_message = ('%s has not the right type!' - ' Needs to be a boolean!\n') \ - % key + ' Needs to be a boolean!\n') % key raise ValueError(error_message) @@ -54,7 +53,7 @@ def check_json_format(server): if FINGERPRINT_REGEX.match(server['fingerprint']) is None: raise ValueError('fingerprint has not the right format!\n') - if server['server_type'] == 'bridge': + if server['server_type'] == 'Bridge': for key in ('obfs', 'fteproxy', 'flashproxy', 'meek'): check_bridge(key, server) diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ def _get_requirements(): setup(name='Ennstatus', - version='4.2.0', + version='4.2.1', description=('Ennstatus provides the user with vital information about ' 'the status of the organizations Tor servers.'), author='Frënn vun der Ënn',