diff --git a/neo/master/handlers/election.py b/neo/master/handlers/election.py index 6bcf3ba9fa8e5324365bb490b55c1bc844eaec18..beca461d74575639a890a323d9bc20ae2161f498 100644 --- a/neo/master/handlers/election.py +++ b/neo/master/handlers/election.py @@ -27,8 +27,7 @@ class ElectionHandler(MasterHandler): """This class deals with events for a primary master election.""" def notifyNodeInformation(self, conn, node_list): - uuid = conn.getUUID() - if uuid is None: + if conn.getUUID() is None: raise protocol.ProtocolError('Not identified') app = self.app for node_type, addr, uuid, state in node_list: