From f7bd7d57d6113fad6fe1cca9b7da9ea72f6aa5ed Mon Sep 17 00:00:00 2001 From: Rongxin Liu Date: Sun, 3 Apr 2022 18:56:30 -0400 Subject: [PATCH] updated error message --- setup.py | 2 +- submit50/__main__.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 7cd1458..9e7b77e 100644 --- a/setup.py +++ b/setup.py @@ -25,6 +25,6 @@ entry_points={ "console_scripts": ["submit50=submit50.__main__:main"] }, - version="3.1.0", + version="3.1.1", include_package_data=True ) diff --git a/submit50/__main__.py b/submit50/__main__.py index a98d5bb..5665505 100644 --- a/submit50/__main__.py +++ b/submit50/__main__.py @@ -62,7 +62,7 @@ def check_version(): res = requests.get(f"{SUBMIT_URL}/versions/submit50") if res.status_code != 200: raise Error(_("You have an unknown version of submit50. " - "Email sysadmins@cs50.harvard.edu!")) + "Please visit our status page https://cs50.statuspage.io for more information.")) # Check that latest version == version installed required_version = pkg_resources.parse_version(res.text.strip()) @@ -159,7 +159,7 @@ def excepthook(type, value, tb): for line in str(value).split("\n"): cprint(str(line), "yellow") elif not isinstance(value, KeyboardInterrupt): - cprint(_("Sorry, something's wrong! Let sysadmins@cs50.harvard.edu know!"), "yellow") + cprint(_("Sorry, something's wrong, please try again. If the problem persists, please visit our status page https://cs50.statuspage.io for more information."), "yellow") if excepthook.verbose: traceback.print_exception(type, value, tb)