1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-09 16:37:23 +01:00

Fixed RSE102 (unnecessary-paren-on-raise-exception): Unnecessary parentheses on raised exception

This commit is contained in:
Teal Dulcet
2023-12-22 07:16:15 -08:00
committed by Joshua Tauberer
parent 13b38cc04d
commit 51dc7615f7
4 changed files with 11 additions and 11 deletions

View File

@@ -581,7 +581,7 @@ def get_backup_config(env, for_save=False, for_ui=False):
try:
with open(os.path.join(backup_root, 'custom.yaml')) as f:
custom_config = rtyaml.load(f)
if not isinstance(custom_config, dict): raise ValueError() # caught below
if not isinstance(custom_config, dict): raise ValueError # caught below
config.update(custom_config)
except:
pass