Url._url_check should return None

There's no point in returning True if it's never checked and won't ever
be False.
Implicitly returning None or raising an exception is more idiomatic.
This commit is contained in:
AntiCompositeNumber 2020-07-21 16:34:33 -04:00
parent 77bc275333
commit 168ef1854a
No known key found for this signature in database
GPG Key ID: A888A323AB506229

View File

@ -64,7 +64,6 @@ class Url:
"""Check for common URL problems."""
if "." not in self.url:
raise URLError("'%s' is not a vaild URL." % self.url)
return True
def _clean_url(self):
"""Fix the URL, if possible."""