Skip to content

Commit

Permalink
stripped whitespace from course configure urls
Browse files Browse the repository at this point in the history
  • Loading branch information
splyysh committed Jun 1, 2017
1 parent 87513be commit 015e258
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions edit_course/operations/configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ def configure_content(instance, url):
if not url:
return [_("Configuration URL required.")]
try:
url = url.strip()
response = requests.get(url)
except Exception as e:
return [_("Request failed: {}").format(str(e))]
Expand Down

0 comments on commit 015e258

Please sign in to comment.