# HG changeset patch # User Dennis Fink # Date 2016-05-16 17:30:34 # Node ID fa77922d3ae388398f2798d0bcf7cfc808bbea4a # Parent 85e51fafd8b355a1c944886bf441a5fda89420ac # Parent 7f26f813806e239783c7460549c10e7f3f750d59 Merge hotfix-update-flags diff --git a/ennstatus/api/model.py b/ennstatus/api/model.py --- a/ennstatus/api/model.py +++ b/ennstatus/api/model.py @@ -255,10 +255,13 @@ class Server: except: raise NotImplementedError - if data is not None: - self.flags = data.relays[0].flags - else: - raise NotImplementedError + try: + if data is not None: + self.flags = data.relays[0].flags + else: + raise NotImplementedError + except IndexError as e: + raise NotImplementedError from e def check_status(self): 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='5.4.6', + version='5.4.7', description=('Ennstatus provides the user with vital information about ' 'the status of the organizations Tor servers.'), author='Frënn vun der Ënn',