diff --git a/domjudge_utility/dump.py b/domjudge_utility/dump.py index 419e8f5..147be89 100644 --- a/domjudge_utility/dump.py +++ b/domjudge_utility/dump.py @@ -93,7 +93,8 @@ def send_request(self, url, params={}): if res.status_code != 200: self.logger.error('An error occurred during request GET {}, errcode:{}'.format( url, res.status_code)) - exit() + raise RuntimeError( + "fetch failed. [url={}] [status_code={}]".format(url, res.status_code)) return res