mirror of
https://github.com/ansible/awx.git
synced 2026-03-26 21:35:01 -02:30
flake8: comply with new E722 rule
This commit is contained in:
committed by
Ryan Petrello
parent
7538b4ce15
commit
67867cf0c8
@@ -84,7 +84,7 @@ class URLField(CharField):
|
||||
else:
|
||||
netloc = '{}@{}' % (url_parts.username, netloc)
|
||||
value = urlparse.urlunsplit([url_parts.scheme, netloc, url_parts.path, url_parts.query, url_parts.fragment])
|
||||
except:
|
||||
except Exception:
|
||||
raise # If something fails here, just fall through and let the validators check it.
|
||||
super(URLField, self).run_validators(value)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user