mirror of
https://github.com/janeczku/calibre-web
synced 2025-12-15 12:08:05 +00:00
Log exception for unhandled errors in background tasks
This commit is contained in:
@@ -199,7 +199,7 @@ class CalibreTask:
|
|||||||
self.run(*args)
|
self.run(*args)
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
self._handleError(str(ex))
|
self._handleError(str(ex))
|
||||||
log.error_or_exception(ex)
|
log.exception(ex)
|
||||||
|
|
||||||
self.end_time = datetime.now()
|
self.end_time = datetime.now()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user