Browse Source

[codacy] except ValueError

Signed-off-by: R4SAS <r4sas@i2pmail.org>
gha
R4SAS 3 years ago
parent
commit
05c1938aa6
Signed by: r4sas
GPG Key ID: 66F6C87B98EBCFE2
  1. 2
      pbincli/utils.py

2
pbincli/utils.py

@ -40,5 +40,5 @@ def uri_validator(x):
try: try:
result = urlparse(x) result = urlparse(x)
return all([result.scheme, result.netloc]) return all([result.scheme, result.netloc])
except: except ValueError:
return False return False
Loading…
Cancel
Save