diff options
author | Leonardo Lazzaro <llazzaro@dc.uba.ar> | 2022-08-18 20:23:15 +0200 |
---|---|---|
committer | Leonardo Lazzaro <llazzaro@dc.uba.ar> | 2023-02-18 11:24:09 +0000 |
commit | 61bb4e783b3acc62b121a228f6b14c2462e23315 (patch) | |
tree | 548f66ac6d5c428cd63485b373308081ffb00b5b /contrib | |
parent | 73b61717a977fc9d23f1bae3f8620641a9dee1f3 (diff) | |
download | bitcoin-61bb4e783b3acc62b121a228f6b14c2462e23315.tar.xz |
lint: enable E722 do not use bare except
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/devtools/security-check.py | 2 | ||||
-rwxr-xr-x | contrib/signet/getcoins.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/contrib/devtools/security-check.py b/contrib/devtools/security-check.py index 05c0af029e..bcb1cfc9ef 100755 --- a/contrib/devtools/security-check.py +++ b/contrib/devtools/security-check.py @@ -34,7 +34,7 @@ def check_ELF_RELRO(binary) -> bool: flags = binary.get(lief.ELF.DYNAMIC_TAGS.FLAGS) if flags.value & lief.ELF.DYNAMIC_FLAGS.BIND_NOW: have_bindnow = True - except: + except Exception: have_bindnow = False return have_gnu_relro and have_bindnow diff --git a/contrib/signet/getcoins.py b/contrib/signet/getcoins.py index a069f5fad3..55bce3826d 100755 --- a/contrib/signet/getcoins.py +++ b/contrib/signet/getcoins.py @@ -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 |