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
@@ -142,7 +142,7 @@ if args.captcha != '': # Retrieve a captcha
|
||||
|
||||
try:
|
||||
res = session.post(args.faucet, data=data)
|
||||
except:
|
||||
except Exception:
|
||||
raise SystemExit(f"Unexpected error when contacting faucet: {sys.exc_info()[0]}")
|
||||
|
||||
# Display the output as per the returned status code
|
||||
|
||||
Reference in new issue
Block a user