flake8: E722 do not use bare 'except'
MODIFY
plex_trakt_sync/commands/webhook.py
plex_trakt_sync/commands/webhook.py
@@ -110,7 +110,7 @@ def webhook(bind: str, port: int):
try:
httpd.server_bind()
httpd.server_activate()
- except:
+ except Exception:
httpd.server_close()
raise
httpd.serve_forever()

MODIFY
plex_trakt_sync/logging.py
plex_trakt_sync/logging.py
@@ -15,7 +15,7 @@ def emit(self, record):
self.flush()
except (KeyboardInterrupt, SystemExit):
raise
- except:
+ except Exception:
self.handleError(record)

flake8: E722 do not use bare 'except'