mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 22:09:04 +08:00
Add None-check for download url
CURA-7150
This commit is contained in:
parent
6dd8ebb06a
commit
2e7b47f1ea
@ -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…
x
Reference in New Issue
Block a user