Skip to content

Commit

Permalink
Merge pull request #109 from cs50/announcements
Browse files Browse the repository at this point in the history
Add check for announcements
  • Loading branch information
brianyu28 authored Jul 30, 2017
2 parents 5a72ea9 + 61b2958 commit bbd95db
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions submit50.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,11 @@ def progress_helper():
def submit(org, problem):
"""Submit problem."""

# check announcements
res = requests.get("https://cs50.me/status/submit50")
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
if not which("git"):
Expand Down

0 comments on commit bbd95db

Please sign in to comment.