From 18bc34bf4149ef65c975075fef475b578a64eb37 Mon Sep 17 00:00:00 2001 From: Michal Konečný Date: Jul 14 2022 11:35:38 +0000 Subject: Fix error when logging exception on event listener Exception doesn't have message attribute, let's use str(). Signed-off-by: Michal Konečný --- diff --git a/pagure-ev/pagure_stream_server.py b/pagure-ev/pagure_stream_server.py index d1aeb00..a143d75 100644 --- a/pagure-ev/pagure_stream_server.py +++ b/pagure-ev/pagure_stream_server.py @@ -170,7 +170,7 @@ def handle_client(client_reader, client_writer): try: obj = get_obj_from_path(url.path) except PagureException as err: - log.warning(err.message) + log.warning(str(err)) return origin = pagure.config.config.get("APP_URL")