mirror of
https://github.com/FutaGuard/LowTechFilter.git
synced 2025-06-21 05:21:02 +08:00
refactor: raise when error
This commit is contained in:
parent
16d814ed7e
commit
ad76f2afd2
@ -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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user