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

Commit

Permalink
Merge pull request #17 from plecto/bugfix/attribute-error
Browse files Browse the repository at this point in the history
Bugfix: Add default values for Job-attributes
  • Loading branch information
alesdotio authored Aug 24, 2021
2 parents a735e38 + c193fc2 commit a0dbcc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rq_mantis/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ def queue_detail(name):
job = Job.fetch(job_id)
try:
cleaned_func_name = job.func_name
cleaned_args = job.cleaned_args
cleaned_kwargs = job.cleaned_kwargs
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 a0dbcc0

Please sign in to comment.