diff options
author | Kyomotoi <[email protected]> | 2020-11-07 14:49:51 +0800 |
---|---|---|
committer | Kyomotoi <[email protected]> | 2020-11-07 14:49:51 +0800 |
commit | c9074b24b98efe18096256ab680535f50691f67d (patch) | |
tree | fb912e4506e478d3d61e89b2824fc83d69eae7cd /utils/utils_switch | |
parent | 85517a82b9f787ed7c3008655c8dc04d8e6f0a30 (diff) | |
download | ATRI-c9074b24b98efe18096256ab680535f50691f67d.tar.gz ATRI-c9074b24b98efe18096256ab680535f50691f67d.tar.bz2 ATRI-c9074b24b98efe18096256ab680535f50691f67d.zip |
[Upload]
Diffstat (limited to 'utils/utils_switch')
-rw-r--r-- | utils/utils_switch/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/utils_switch/__init__.py b/utils/utils_switch/__init__.py index e494712..d4e73db 100644 --- a/utils/utils_switch/__init__.py +++ b/utils/utils_switch/__init__.py @@ -31,7 +31,7 @@ def controlSwitch(func_name: str, try: with open(file_switch_group, 'r') as f: data_switch_group = json.load(f) - except: + except FileNotFoundError: data_switch_group = {} if data_switch_group[f"{func_name}"]: @@ -51,7 +51,7 @@ def controlSwitch(func_name: str, try: with open(file_switch_all, 'r') as f: data_switch_all = json.load(f) - except: + except FileNotFoundError: data_switch_all = {} if data_switch_all[f"{func_name}"]: |