Changeset - c3e70c233393
[Not reviewed]
Dennis Fink - 9 years ago 2016-03-02 23:44:18
dennis.fink@c3l.lu
Don't fail if there is no data in update_flags
1 file changed with 4 insertions and 1 deletions:
0 comments (0 inline, 0 general)
ennstatus/api/model.py
Show inline comments
 
@@ -255,7 +255,10 @@ class Server:
 
        except:
 
            raise NotImplementedError
 

	
 
        self.flags = data.relays[0].flags
 
        if data is not None:
 
            self.flags = data.relays[0].flags
 
        else:
 
            raise NotImplementedError
 

	
 
    def check_status(self):
 

	
0 comments (0 inline, 0 general)