fix(utils.py): 修复 heartbeat 请求失败导致报错的问题
修复 heartbeat 请求失败导致报错的问题 Signed-off-by: Ching <loooching@gmail.com>
This commit is contained in:
parent
a05637d7d5
commit
889ef10b1f
6
utils.py
6
utils.py
@ -25,11 +25,9 @@ def is_game_time():
|
|||||||
|
|
||||||
|
|
||||||
def heartbeat():
|
def heartbeat():
|
||||||
try:
|
resp = requests.get('https://up.tunpok.com/api/push/BDb4MJWDVh?status=up&msg=OK&ping=')
|
||||||
resp = requests.get('https://up.tunpok.com/api/push/BDb4MJWDVh?status=up&msg=OK&ping=')
|
if not resp.ok:
|
||||||
except:
|
|
||||||
logger.error('fail to heartbeat, resp status: %s' % resp.status_code)
|
logger.error('fail to heartbeat, resp status: %s' % resp.status_code)
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
def get_ranking(ranking_int):
|
def get_ranking(ranking_int):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user