mirror of
https://github.com/netinvent/npbackup.git
synced 2025-09-10 15:04:55 +08:00
Upgrader: Improve error message
This commit is contained in:
parent
1537e0500a
commit
0d5a0ed164
1 changed files with 3 additions and 0 deletions
|
@ -158,6 +158,9 @@ def auto_upgrader(
|
||||||
id_record = target
|
id_record = target
|
||||||
|
|
||||||
file_info = requestor.data_model("upgrades", id_record=id_record)
|
file_info = requestor.data_model("upgrades", id_record=id_record)
|
||||||
|
if not file_info:
|
||||||
|
logger.error("Server didn't provide a file description")
|
||||||
|
return False
|
||||||
try:
|
try:
|
||||||
sha256sum = file_info["sha256sum"]
|
sha256sum = file_info["sha256sum"]
|
||||||
except (KeyError, TypeError):
|
except (KeyError, TypeError):
|
||||||
|
|
Loading…
Add table
Reference in a new issue