Skip to content

Commit

Permalink
Strip newlines from announcement
Browse files Browse the repository at this point in the history
  • Loading branch information
brianyu28 committed Jul 30, 2017
1 parent c363177 commit 61b2958
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions submit50.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,8 +382,8 @@ def submit(org, problem):

# check announcements
res = requests.get("https://cs50.me/status/submit50")
if res.status_code == 200 and res.text:
raise Error(res.text)
if res.status_code == 200 and res.text.strip():
raise Error(res.text.strip())

# require git 2.7+, so that credential-cache--daemon ignores SIGHUP
# https://github.com/git/git/blob/v2.7.0/credential-cache--daemon.c
Expand Down

0 comments on commit 61b2958

Please sign in to comment.