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:
authorGhostkeeper <rubend@tutanota.com>2016-09-14 16:37:12 +0300
committerGhostkeeper <rubend@tutanota.com>2016-09-14 16:41:32 +0300
commit5c49adc52e26584c09b850f2ef649093e5a9b628 (patch)
tree56a7f912f45adb79fddb5c51d90d4398e7a42a77 /plugins/VersionUpgrade/VersionUpgrade21to22
parent151fcfdda6e52b38d6d3ee9f1624b0a383a5cef3 (diff)
Also return tuple if upgrading failed
It is checked if the file data is None or empty (the upgrade is then considered 'failed'). But to unpack the file data, it needs to be a tuple. Contributes to issue CURA-844.
Diffstat (limited to 'plugins/VersionUpgrade/VersionUpgrade21to22')
-rw-r--r--plugins/VersionUpgrade/VersionUpgrade21to22/Profile.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/VersionUpgrade/VersionUpgrade21to22/Profile.py b/plugins/VersionUpgrade/VersionUpgrade21to22/Profile.py
index ff404c0398..a09ac4f3d7 100644
--- a/plugins/VersionUpgrade/VersionUpgrade21to22/Profile.py
+++ b/plugins/VersionUpgrade/VersionUpgrade21to22/Profile.py
@@ -80,7 +80,7 @@ class Profile:
import VersionUpgrade21to22 # Import here to prevent circular dependencies.
if self._name == "Current settings":
- return 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.
+ 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)