From ad76f2afd2788a71ed54210361a48a1b695dfb31 Mon Sep 17 00:00:00 2001 From: eth3lbert Date: Sat, 8 Jul 2023 19:04:54 +0800 Subject: [PATCH] refactor: raise when error --- AutoBuild/tw_165.py | 1 + 1 file changed, 1 insertion(+) diff --git a/AutoBuild/tw_165.py b/AutoBuild/tw_165.py index 8c741d4..4bf7f6b 100644 --- a/AutoBuild/tw_165.py +++ b/AutoBuild/tw_165.py @@ -23,6 +23,7 @@ def main(): r_json = r.json()['result']['records'] except (JSONDecodeError, KeyError): logger.critical('Parse JSON Err') + raise # check if file exists filename = 'TW165.txt'