diff --git a/utils.py b/utils.py index c52f302..0761e1a 100644 --- a/utils.py +++ b/utils.py @@ -25,11 +25,9 @@ def is_game_time(): def heartbeat(): - try: - resp = requests.get('https://up.tunpok.com/api/push/BDb4MJWDVh?status=up&msg=OK&ping=') - except: + resp = requests.get('https://up.tunpok.com/api/push/BDb4MJWDVh?status=up&msg=OK&ping=') + if not resp.ok: logger.error('fail to heartbeat, resp status: %s' % resp.status_code) - pass def get_ranking(ranking_int):