directly pass exception instances as 'exc_info' logger argument

This commit is contained in:
Mike Fährmann
2024-09-19 14:50:08 +02:00
parent dd56bb2187
commit a051e1c955
6 changed files with 18 additions and 15 deletions

View File

@@ -223,11 +223,12 @@ class UgoiraPP(PostProcessor):
print()
self.log.error("Unable to invoke FFmpeg (%s: %s)",
exc.__class__.__name__, exc)
self.log.debug("", exc_info=exc)
pathfmt.realpath = pathfmt.temppath
except Exception as exc:
print()
self.log.error("%s: %s", exc.__class__.__name__, exc)
self.log.debug("", exc_info=True)
self.log.debug("", exc_info=exc)
pathfmt.realpath = pathfmt.temppath
else:
if self.mtime: