refactor: raise when error

This commit is contained in:
eth3lbert 2023-07-08 19:04:54 +08:00
parent 16d814ed7e
commit ad76f2afd2
No known key found for this signature in database

View File

@ -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'