lint: enable E722 do not use bare except
This commit is contained in:
1 parent
73b61717a9
commit
61bb4e783b
10 files changed
+11
-10
No files matched your search
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user