Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
MJU-POPS
ckanext-archiver
Commits
edbb0d04
Commit
edbb0d04
authored
Apr 19, 2016
by
David Read
Browse files
Fix test broken in previous commit.
parent
2fe624f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
ckanext/archiver/tasks.py
View file @
edbb0d04
...
...
@@ -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
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment