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:
committed by
Joshua Tauberer
parent
13b38cc04d
commit
51dc7615f7
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user