From 4527b866bfd4207d91b1ad6d46d37a5da39c1636 Mon Sep 17 00:00:00 2001 From: alemidev Date: Mon, 23 May 2022 02:41:01 +0200 Subject: [PATCH] also show str(exception) --- src/treepuncher/treepuncher.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/treepuncher/treepuncher.py b/src/treepuncher/treepuncher.py index 3a488f0..b72147b 100644 --- a/src/treepuncher/treepuncher.py +++ b/src/treepuncher/treepuncher.py @@ -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)