mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 14:35:56 +08:00
Ensure that if no CuraCloudApiRoot is set that the default is used
CURA-6005
This commit is contained in:
parent
ff79e91686
commit
d4621ec504
@ -10,6 +10,8 @@ DEFAULT_CLOUD_ACCOUNT_API_ROOT = "https://account.ultimaker.com" # type: str
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
from cura.CuraVersion import CuraCloudAPIRoot # type: ignore
|
from cura.CuraVersion import CuraCloudAPIRoot # type: ignore
|
||||||
|
if CuraCloudAPIRoot == "":
|
||||||
|
CuraCloudAPIRoot = DEFAULT_CLOUD_API_ROOT
|
||||||
except ImportError:
|
except ImportError:
|
||||||
CuraCloudAPIRoot = DEFAULT_CLOUD_API_ROOT
|
CuraCloudAPIRoot = DEFAULT_CLOUD_API_ROOT
|
||||||
|
|
||||||
@ -20,5 +22,7 @@ except ImportError:
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
from cura.CuraVersion import CuraCloudAccountAPIRoot # type: ignore
|
from cura.CuraVersion import CuraCloudAccountAPIRoot # type: ignore
|
||||||
|
if CuraCloudAccountAPIRoot == "":
|
||||||
|
CuraCloudAccountAPIRoot = DEFAULT_CLOUD_ACCOUNT_API_ROOT
|
||||||
except ImportError:
|
except ImportError:
|
||||||
CuraCloudAccountAPIRoot = DEFAULT_CLOUD_ACCOUNT_API_ROOT
|
CuraCloudAccountAPIRoot = DEFAULT_CLOUD_ACCOUNT_API_ROOT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user