Skip to content

Commit

Permalink
Reformat file with black
Browse files Browse the repository at this point in the history
  • Loading branch information
deajan committed Feb 8, 2023
1 parent 93ec1b1 commit d5e497b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions npbackup/gui/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ def ask_backup_admin_password(config_dict) -> bool:
backup_admin_password = configuration.DEFAULT_BACKUP_ADMIN_PASSWORD
except KeyError:
backup_admin_password = configuration.DEFAULT_BACKUP_ADMIN_PASSWORD
if sg.PopupGetText(_t("config_gui.enter_backup_admin_password"), password_char='*') == str(
backup_admin_password
):
if sg.PopupGetText(
_t("config_gui.enter_backup_admin_password"), password_char="*"
) == str(backup_admin_password):
return True
sg.PopupError(_t("config_gui.wrong_password"))
return False
Expand Down Expand Up @@ -484,7 +484,9 @@ def update_config_dict(values, config_dict):
logger.info("Configuration saved successfully.")
break
else:
sg.PopupError(_t("config_gui.cannot_save_configuration"), keep_on_top=True)
sg.PopupError(
_t("config_gui.cannot_save_configuration"), keep_on_top=True
)
logger.info("Could not save configuration")
if event == _t("config_gui.show_decrypted"):
if ask_backup_admin_password(config_dict):
Expand Down

0 comments on commit d5e497b

Please sign in to comment.