Commit b94fd22c authored by Tanner Prestegard's avatar Tanner Prestegard Committed by GraceDB
Browse files

Create superevent directory earlier in process

parent a8758a4e
......@@ -96,6 +96,9 @@ def create_superevent(submitter, t_start, t_0, t_end, preferred_event,
add_superevent_log=False, add_event_log=True,
issue_alert=False)
# Create superevent data directory
os.makedirs(s.datadir)
# Issue all relevant alerts
if issue_alert:
# Send "new" alert about superevent creation
......@@ -115,9 +118,6 @@ def create_superevent(submitter, t_start, t_0, t_end, preferred_event,
labelling, _ = add_label_to_superevent(s, label, submitter,
add_log_message=True, issue_alert=issue_alert)
# Create superevent data directory
os.makedirs(s.datadir)
return s
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment