chiark / gitweb /
backwards compatibility with older project files.
authorDaid <daid303@gmail.com>
Fri, 27 Apr 2012 19:48:56 +0000 (21:48 +0200)
committerDaid <daid303@gmail.com>
Fri, 27 Apr 2012 19:48:56 +0000 (21:48 +0200)
Cura/gui/projectPlanner.py

index 04513bd53ecb664ac8ffa053d89d634a3ed2df0c..538ea47c3a172aba02e9c226c6990057fe8ba620 100644 (file)
@@ -163,7 +163,8 @@ class projectPlanner(wx.Frame):
                                item.flipZ = cp.get(section, 'flipZ') == 'True'\r
                                item.swapXZ = cp.get(section, 'swapXZ') == 'True'\r
                                item.swapYZ = cp.get(section, 'swapYZ') == 'True'\r
-                               item.extuder = int(cp.get(section, 'extruder'))-1\r
+                               if cp.has_option(section, 'extruder'):\r
+                                       item.extuder = int(cp.get(section, 'extruder'))-1\r
                                i += 1\r
                                \r
                                self.list.append(item)\r