Fix typing issues

CURA-6005
This commit is contained in:
Lipu Fei 2018-12-12 10:51:11 +01:00
parent 8c07a6e89b
commit a6663ea0e8
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ except ImportError:
# Cloud API
# ---------
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:
from cura.CuraVersion import CuraCloudAPIRoot # type: ignore

View File

@ -108,7 +108,7 @@ class DriveApiService:
for chunk in download_package:
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.
# This can happen if the download was interrupted.
Logger.log("w", "Remote and local MD5 hashes do not match, not restoring backup.")