Skip to content
Snippets Groups Projects
Commit 2a003aaf authored by Julian Rother's avatar Julian Rother
Browse files

Fixed job_handler-decorator

parent fe69fa23
No related branches found
No related tags found
No related merge requests found
......@@ -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] = []
job_handlers[jobtype][state].append(func)
return func
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment