diff --git a/submit50.py b/submit50.py index b848e29..026cbd2 100644 --- a/submit50.py +++ b/submit50.py @@ -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"):