Commit edbb0d04 authored by David Read's avatar David Read
Browse files

Fix test broken in previous commit.

parent 2fe624f3
......@@ -559,7 +559,7 @@ def tidy_url(url):
# Check we aren't using any schemes we shouldn't be.
# Scheme is case-insensitive.
if not parsed_url.scheme.lower() in ALLOWED_SCHEMES:
if not parsed_url.scheme or not parsed_url.scheme.lower() in ALLOWED_SCHEMES:
raise LinkInvalidError('Invalid url scheme. Please use one of: %s' %
' '.join(ALLOWED_SCHEMES))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment