Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime van Kessel <nallath@gmail.com>2016-11-18 18:46:54 +0300
committerJaime van Kessel <nallath@gmail.com>2016-11-18 18:46:54 +0300
commitac708d54b696aa09598915942fc84efc9ae4dcba (patch)
tree48c97c6972293c0b3e9fc5c865977cc87f8aadd1 /plugins/VersionUpgrade/VersionUpgrade21to22
parent1b01455c36a21fad9ce7454dbd01a7cf3c4e8c11 (diff)
Importing invalid filetypes now gives proper error messages
CURA-2883
Diffstat (limited to 'plugins/VersionUpgrade/VersionUpgrade21to22')
-rw-r--r--plugins/VersionUpgrade/VersionUpgrade21to22/Profile.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/VersionUpgrade/VersionUpgrade21to22/Profile.py b/plugins/VersionUpgrade/VersionUpgrade21to22/Profile.py
index d7d20db071..e55a89faf3 100644
--- a/plugins/VersionUpgrade/VersionUpgrade21to22/Profile.py
+++ b/plugins/VersionUpgrade/VersionUpgrade21to22/Profile.py
@@ -5,6 +5,7 @@ import configparser #To read config files.
import io #To write config files to strings as if they were files.
import UM.VersionUpgrade
+from UM.Logger import Logger
## Creates a new profile instance by parsing a serialised profile in version 1
# of the file format.
@@ -80,6 +81,7 @@ class Profile:
import VersionUpgrade21to22 # Import here to prevent circular dependencies.
if self._name == "Current settings":
+ Logger.log("w", "Unable to upgrade this profile. Skipping it.")
return None, None #Can't upgrade these, because the new current profile needs to specify the definition ID and the old file only had the machine instance, not the definition.
config = configparser.ConfigParser(interpolation = None)