Browse Source

Use sane default when CuraCloudApiVersion is not set

Jaime van Kessel 6 years ago
parent
commit
72a7cc59ce
1 changed files with 2 additions and 0 deletions
  1. 2 0
      cura/UltimakerCloudAuthentication.py

+ 2 - 0
cura/UltimakerCloudAuthentication.py

@@ -17,6 +17,8 @@ except ImportError:
 
 try:
     from cura.CuraVersion import CuraCloudAPIVersion  # type: ignore
+    if CuraCloudAPIVersion == "":
+        CuraCloudAPIVersion = DEFAULT_CLOUD_API_VERSION
 except ImportError:
     CuraCloudAPIVersion = DEFAULT_CLOUD_API_VERSION