also show str(exception)

This commit is contained in:
əlemi 2022-05-23 02:41:01 +02:00
parent 76c84006ad
commit 4527b866bf
No known key found for this signature in database
GPG key ID: BBCBFE5D7244634E

View file

@ -203,8 +203,8 @@ class Treepuncher(
except AuthException as e:
self.logger.error("Auth exception : [%s|%d] %s (%s)", e.endpoint, e.code, e.data, e.kwargs)
except Exception:
self.logger.exception("Unhandled exception")
except Exception as e:
self.logger.exception("Unhandled exception : %s", str(e))
if self._processing:
await self.stop(force=True)