mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-23 21:19:58 +08:00
Fix typing issues
CURA-6005
This commit is contained in:
parent
8c07a6e89b
commit
a6663ea0e8
@ -41,7 +41,7 @@ except ImportError:
|
|||||||
# Cloud API
|
# Cloud API
|
||||||
# ---------
|
# ---------
|
||||||
DEFAULT_CLOUD_API_ROOT = "https://api.ultimaker.com" # type: str
|
DEFAULT_CLOUD_API_ROOT = "https://api.ultimaker.com" # type: str
|
||||||
DEFAULT_CLOUD_API_VERSION = 1 # type: int
|
DEFAULT_CLOUD_API_VERSION = "1" # type: str
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from cura.CuraVersion import CuraCloudAPIRoot # type: ignore
|
from cura.CuraVersion import CuraCloudAPIRoot # type: ignore
|
||||||
|
@ -108,7 +108,7 @@ class DriveApiService:
|
|||||||
for chunk in download_package:
|
for chunk in download_package:
|
||||||
write_backup.write(chunk)
|
write_backup.write(chunk)
|
||||||
|
|
||||||
if not self._verifyMd5Hash(temporary_backup_file.name, backup.get("md5_hash")):
|
if not self._verifyMd5Hash(temporary_backup_file.name, backup.get("md5_hash", "")):
|
||||||
# Don't restore the backup if the MD5 hashes do not match.
|
# Don't restore the backup if the MD5 hashes do not match.
|
||||||
# This can happen if the download was interrupted.
|
# This can happen if the download was interrupted.
|
||||||
Logger.log("w", "Remote and local MD5 hashes do not match, not restoring backup.")
|
Logger.log("w", "Remote and local MD5 hashes do not match, not restoring backup.")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user