From 04580dbb97834d2182d63f5d15b96e81639f6af4 Mon Sep 17 00:00:00 2001 From: sinwar Date: Sun, 5 Mar 2017 14:55:27 +0530 Subject: [PATCH] python: Fix remaining bare excepts in codebase. Fixes #2862. --- bots/jabber_mirror_backend.py | 2 +- integrations/google/google-calendar | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bots/jabber_mirror_backend.py b/bots/jabber_mirror_backend.py index e78998c..573839c 100755 --- a/bots/jabber_mirror_backend.py +++ b/bots/jabber_mirror_backend.py @@ -234,7 +234,7 @@ class ZulipToJabberBot(object): self.stream_message(message) elif message['type'] == 'private': self.private_message(message) - except: + except Exception: logging.exception("Exception forwarding Zulip => Jabber") elif event['type'] == 'subscription': self.process_subscription(event) diff --git a/integrations/google/google-calendar b/integrations/google/google-calendar index 17b5a0b..7b78e3b 100755 --- a/integrations/google/google-calendar +++ b/integrations/google/google-calendar @@ -195,6 +195,6 @@ for i in itertools.count(): if not i % 10: populate_events() send_reminders() - except: + except Exception: logging.exception("Couldn't download Google calendar and/or couldn't post to Zulip.") time.sleep(60)