Skip to content

Commit

Permalink
Merge pull request #282 from splyysh/master
Browse files Browse the repository at this point in the history
stripped whitespace from course configure urls
  • Loading branch information
teemulehtinen authored Jun 1, 2017
2 parents 87513be + 015e258 commit 58440b0
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 58440b0

Please sign in to comment.