mirror of
https://github.com/r4sas/PBinCLI
synced 2025-02-03 18:34:39 +00:00
[codacy] except ValueError
Signed-off-by: R4SAS <r4sas@i2pmail.org>
This commit is contained in:
parent
369738ea50
commit
05c1938aa6
@ -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…
x
Reference in New Issue
Block a user