Compare commits

..

2 commits

Author SHA1 Message Date
fac66d905e
fixed key error 2025-01-03 11:59:16 +01:00
46c3ebf579
fixed indentation 2025-01-03 11:58:51 +01:00
2 changed files with 5 additions and 2 deletions

View file

@ -80,7 +80,10 @@ class BackupManager:
def main(): def main():
config = read_config() config = read_config()
os.chdir(config["BACKUP_DOCKER_DIR"]) try:
os.chdir(config["common"]["BACKUP_DOCKER_DIR"])
except KeyError:
pass
backup_manager = BackupManager() backup_manager = BackupManager()
if not backup_manager.export_data(): if not backup_manager.export_data():
exit(1) exit(1)