Commit 2a003aaf authored by Julian Rother's avatar Julian Rother
Browse files

Fixed job_handler-decorator

parent fe69fa23
......@@ -468,7 +468,7 @@ def job_handler(*types, state='finished'):
for jobtype in types:
if jobtype not in job_handlers:
job_handlers[jobtype] = {}
if jobtype not in job_handlers[jobtype]:
if state not in job_handlers[jobtype]:
job_handlers[jobtype][state] = []
return func
Supports Markdown
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