mirror of
https://github.com/netinvent/npbackup.git
synced 2025-09-11 23:45:29 +08:00
Improve missing path test
This commit is contained in:
parent
70e2159677
commit
dad801161d
1 changed files with 1 additions and 1 deletions
|
@ -1130,7 +1130,7 @@ class NPBackupRunner:
|
||||||
msg = f"You cannot backup source into it's own path in repo {self.repo_config.g('name')}. No inception allowed !"
|
msg = f"You cannot backup source into it's own path in repo {self.repo_config.g('name')}. No inception allowed !"
|
||||||
self.write_logs(msg, level="critical")
|
self.write_logs(msg, level="critical")
|
||||||
return self.convert_to_json_output(False, msg)
|
return self.convert_to_json_output(False, msg)
|
||||||
except KeyError:
|
except (AttributeError, KeyError):
|
||||||
msg = f"No backup source given for repo {self.repo_config.g('name')}"
|
msg = f"No backup source given for repo {self.repo_config.g('name')}"
|
||||||
self.write_logs(msg, level="critical")
|
self.write_logs(msg, level="critical")
|
||||||
return self.convert_to_json_output(False, msg)
|
return self.convert_to_json_output(False, msg)
|
||||||
|
|
Loading…
Add table
Reference in a new issue