File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 1
1
0.6.1
2
+ - fix: handle exceptions in Daemon threads
2
3
- fix: display all resources of a dataset for which the SHA256
3
4
check failed (opposed to just the first)
4
5
- setup: bump dclab from 0.34.6 to 0.35.0
Original file line number Diff line number Diff line change @@ -304,7 +304,17 @@ def run(self):
304
304
continue
305
305
# Perform daemon task
306
306
task = getattr (job , self .job_function_name )
307
- task ()
307
+ try :
308
+ task ()
309
+ except BaseException as e :
310
+ # We do not care if this step fails.
311
+ # TODO: If we get an exception here, we should
312
+ # probably log it. For now, issue a warning:
313
+ warnings .warn (
314
+ f"Experienced an exception in { self .__class__ } "
315
+ + f"with job { job } : { e } "
316
+ )
317
+ pass
308
318
309
319
310
320
class CompressDaemon (Daemon ):
You can’t perform that action at this time.
0 commit comments