fixed key error
This commit is contained in:
parent
46c3ebf579
commit
fac66d905e
1 changed files with 4 additions and 1 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue