Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Commit

Permalink
Update defaults to list and dict
Browse files Browse the repository at this point in the history
  • Loading branch information
MortenKaae committed Aug 23, 2021
1 parent 527dba1 commit c193fc2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rq_mantis/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ def queue_detail(name):
for job_id in rq.registry.StartedJobRegistry(name).get_job_ids():
job = Job.fetch(job_id)
try:
cleaned_func_name = getattr(job, 'func_name', 'No function name')
cleaned_args = getattr(job, 'cleaned_args', 'No cleaned args')
cleaned_kwargs = getattr(job, 'cleaned_kwargs', 'No cleaned kwargs')
cleaned_func_name = job.func_name
cleaned_args = getattr(job, 'cleaned_args', [])
cleaned_kwargs = getattr(job, 'cleaned_kwargs', {})
except UnpickleError:
cleaned_func_name = 'UnpickleError'
cleaned_args = 'UnpickleError'
Expand Down

0 comments on commit c193fc2

Please sign in to comment.