[lint] Limit unneccessarily broad except clauses

Add exception qualifier(s) to bare except clauses swallowing exceptions.
This commit is contained in:
Hornwitser authored and Rapptz committed 2018-11-24 22:17:57 -05:00
1 parent 860d6a9ace
commit a71b3b5fa0
11 files changed
+19 -19

No files matched your search

+1 -1
View File
@@ -177,7 +177,7 @@ class VoiceClient:
if self.socket:
try:
self.socket.close()
except:
except Exception:
pass
self.socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)