Fix for doublesection error exception

This commit is contained in:
thelastWallE 2021-04-04 09:22:45 +02:00
parent 4b61e7311f
commit 2d6aadf510
2 changed files with 5 additions and 5 deletions

View File

@ -551,6 +551,9 @@ class KlipperPlugin(
dataToValidated.readfp(buf)
else:
dataToValidated.read_string(dataToBeValidated)
except configparser.DuplicateSectionError:
self._parsing_check_response = True
pass
except configparser.Error as error:
if sys.version_info[0] < 3:
error.message = error.message.replace("\\n","")
@ -572,9 +575,6 @@ class KlipperPlugin(
"on the 'Klipper Configuration' tab.\n\n" + str(error))
self._parsing_check_response = False
return
else:
self._parsing_check_response = True
return
#incorrectlines = []
# for section in dataToValidated.sections():

View File

@ -19,7 +19,7 @@ plugin_package = "octoprint_klipper"
plugin_name = "OctoKlipper"
plugin_version = "0.3.7"
plugin_version = "0.3.7.1"
plugin_description = """A plugin for OctoPrint to configure,control and monitor the Klipper 3D printer software."""