mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 07:27:29 -06:00
Add None-check for download url
CURA-7150
This commit is contained in:
parent
6dd8ebb06a
commit
2e7b47f1ea
1 changed files with 4 additions and 1 deletions
|
@ -36,8 +36,11 @@ class RestoreBackupJob(Job):
|
|||
|
||||
def run(self) -> None:
|
||||
|
||||
url = self._backup.get("download_url")
|
||||
assert url is not None
|
||||
|
||||
HttpRequestManager.getInstance().get(
|
||||
url = self._backup.get("download_url"),
|
||||
url =url,
|
||||
callback = self._onRestoreRequestCompleted,
|
||||
error_callback = self._onRestoreRequestCompleted
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue