lint: enable E722 do not use bare except

This commit is contained in:
Leonardo Lazzaro committed 2023-02-18 11:24:09 +00:00
1 parent 73b61717a9
commit 61bb4e783b
10 files changed
+11 -10

No files matched your search

+1 -1
View File
@@ -383,7 +383,7 @@ class P2PInterface(P2PConnection):
self.message_count[msgtype] += 1
self.last_message[msgtype] = message
getattr(self, 'on_' + msgtype)(message)
except:
except Exception:
print("ERROR delivering %s (%s)" % (repr(message), sys.exc_info()[0]))
raise