lint: enable E722 do not use bare except

This commit is contained in:
Leonardo Lazzaro
2022-08-18 20:23:15 +02:00
parent 73b61717a9
commit 61bb4e783b
10 changed files with 11 additions and 10 deletions

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