From e0c4d68da5f5c5fa2f64f23623dc8d7f5f0ab69b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Wed, 1 Apr 2020 02:15:01 +0200 Subject: [PATCH] log exception --- communicator.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/communicator.py b/communicator.py index f27940a..7e0f42e 100644 --- a/communicator.py +++ b/communicator.py @@ -50,7 +50,8 @@ class Communicator: json = response.json() LOGGER.info(f"List of currently available consumers: {json}") return json - except Exception: + except Exception as e: + LOGGER.exception(e) return [] def isconsumeravailable(self) -> bool: