Skip to content

Commit f338e36

Browse files
committed
fix: check for existence of persistent job list in upload
1 parent 7ef32f1 commit f338e36

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

CHANGELOG

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
1.0.1
22
- fix: handle resource downloads whose target directory got deleted
3+
- fix: check for existence of persistent job list in upload
34
1.0.0
45
- fix: do not attempt to updates non-existent eternal jobs on exit
56
- enh: allow users to specify circle IDs as well as names during upload

dcoraid/upload/queue.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,8 @@ def __del__(self):
178178
# Attempt to update the eternal jobs (important for ETags)
179179
for job in self.jobs:
180180
try:
181-
if self.jobs_eternal.job_exists(job.dataset_id):
181+
if (self.jobs_eternal is not None
182+
and self.jobs_eternal.job_exists(job.dataset_id)):
182183
self.jobs_eternal.update_job(job)
183184
except BaseException:
184185
self.logger.error(traceback.format_exc())

0 commit comments

Comments
 (0)