Skip to content
Snippets Groups Projects
Commit 5f2de96d authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

SW-824: issue warning for empty vo_event

parent fc94394b
No related branches found
No related tags found
2 merge requests!74Lofar release 4 0,!73SW-824: Resolve SW-824
......@@ -242,6 +242,9 @@ class ALERTHandler(VOEventListenerInterface):
super(ALERTHandler, self).stop_listening()
def handle_event(self, voevent_xml, voevent_etree):
if voevent_xml is None or voevent_etree is None:
logger.warning("skipping empty vo_event")
return
identifier = voevent_etree.attrib['ivorn']
logger.info('Handling new ALERT event %s...' % identifier)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment