From 166c8a304853e02d2e268db933981e65b74d7f0f Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Fri, 18 Dec 2015 09:01:22 +0100 Subject: [PATCH] Fix call to configparser.options It needs to have the section from which to read the options. Contributes to issue CURA-37. --- plugins/LegacyProfileReader/LegacyProfileReader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/LegacyProfileReader/LegacyProfileReader.py b/plugins/LegacyProfileReader/LegacyProfileReader.py index 26ade400b5..0c714690a5 100644 --- a/plugins/LegacyProfileReader/LegacyProfileReader.py +++ b/plugins/LegacyProfileReader/LegacyProfileReader.py @@ -34,7 +34,7 @@ class LegacyProfileReader(ProfileReader): # profile. def prepareLocals(self, parser, section): locals = {} - for option in parser.options(): + for option in parser.options(section): locals[option] = parser.get(section, option) return locals