Skip to content
Snippets Groups Projects
Commit b79f548a authored by Brian Moe's avatar Brian Moe
Browse files

Test whether LM/HM xmldoc submission file loads.

Create an EventLog if it does not.
parent 2c5f0757
No related branches found
No related tags found
No related merge requests found
......@@ -30,7 +30,13 @@ def handle_uploaded_data(event, datafilename,
if event.analysisType in [ 'HM', 'LM' ]:
log_comment = "Log File Created"
# Wildly speculative wrt HM
xmldoc = glue.ligolw.utils.load_filename(datafilename)
try:
xmldoc = glue.ligolw.utils.load_filename(datafilename)
except Exception, e:
message = "Could not read data (%s)" % str(e)
EventLog(event=event, issuer=event.submitter, comment=message).save()
return
# Create Log Data
# XXX This is messy and redundant. All of this is also below.
......
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