Fix for doublesection error exception
This commit is contained in:
parent
4b61e7311f
commit
2d6aadf510
|
@ -551,6 +551,9 @@ class KlipperPlugin(
|
||||||
dataToValidated.readfp(buf)
|
dataToValidated.readfp(buf)
|
||||||
else:
|
else:
|
||||||
dataToValidated.read_string(dataToBeValidated)
|
dataToValidated.read_string(dataToBeValidated)
|
||||||
|
except configparser.DuplicateSectionError:
|
||||||
|
self._parsing_check_response = True
|
||||||
|
pass
|
||||||
except configparser.Error as error:
|
except configparser.Error as error:
|
||||||
if sys.version_info[0] < 3:
|
if sys.version_info[0] < 3:
|
||||||
error.message = error.message.replace("\\n","")
|
error.message = error.message.replace("\\n","")
|
||||||
|
@ -572,9 +575,6 @@ class KlipperPlugin(
|
||||||
"on the 'Klipper Configuration' tab.\n\n" + str(error))
|
"on the 'Klipper Configuration' tab.\n\n" + str(error))
|
||||||
self._parsing_check_response = False
|
self._parsing_check_response = False
|
||||||
return
|
return
|
||||||
else:
|
|
||||||
self._parsing_check_response = True
|
|
||||||
return
|
|
||||||
|
|
||||||
#incorrectlines = []
|
#incorrectlines = []
|
||||||
# for section in dataToValidated.sections():
|
# for section in dataToValidated.sections():
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -19,7 +19,7 @@ plugin_package = "octoprint_klipper"
|
||||||
|
|
||||||
plugin_name = "OctoKlipper"
|
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."""
|
plugin_description = """A plugin for OctoPrint to configure,control and monitor the Klipper 3D printer software."""
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue