python: Fix remaining bare excepts in codebase.
Fixes
MODIFY
bots/jabber_mirror_backend.py
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)

MODIFY
integrations/google/google-calendar
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)

python: Fix remaining bare excepts in codebase.

Fixes #2862.