From acb428eeccdf298ffe7236865b07896643d910d4 Mon Sep 17 00:00:00 2001 From: pengtao Date: Tue, 3 Sep 2019 16:17:09 +0800 Subject: [PATCH] fix bug --- gather_new_user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gather_new_user.py b/gather_new_user.py index c20f5d7..3c0fdcf 100644 --- a/gather_new_user.py +++ b/gather_new_user.py @@ -110,7 +110,7 @@ def run(gameid, channelid, ad_channel): now = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S") last_time = get_last_time(gameid, channelid, ad_channel) if not last_time: - raise Except("last_time get failed") + raise Exception("last_time get failed") while comp_datetime(now, last_time): gather_data(last_time, gameid, channelid, ad_channel) last_time = (datetime.datetime.strptime(last_time, "%Y-%m-%d %H:%M:%S") + datetime.timedelta(minutes=TimeDelay)).strftime("%Y-%m-%d %H:%M:%S")