You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a job was paused by Scheduler like this BackgroundScheduler().pause_job(job_id="5140"), this job's next_run_time attribution is None, then function next_run_time_sec(self, obj) in class DjangoJobAdmin() will raise an error AttributeError: 'NoneType' object has no attribute 'month'. Therefor you'd better deal with it like this:
# djago_apscheduler/admin.py
def next_run_time_sec(self, obj):
return util.localize(obj.next_run_time)
# here
def next_run_time_sec(self, obj):
if obj.next_run_time:
return util.localize(obj.next_run_time)
The text was updated successfully, but these errors were encountered:
If a job was paused by Scheduler like this
BackgroundScheduler().pause_job(job_id="5140")
, this job's next_run_time attribution is None, then function next_run_time_sec(self, obj) inclass DjangoJobAdmin()
will raise an errorAttributeError: 'NoneType' object has no attribute 'month'
. Therefor you'd better deal with it like this:The text was updated successfully, but these errors were encountered: