Merge branch 'master'

This commit is contained in:
thelastWallE 2021-04-04 21:48:16 +02:00
parent 7607954f20
commit 3aba9e8916
2 changed files with 4 additions and 3 deletions

View File

@ -551,6 +551,8 @@ class KlipperPlugin(
dataToValidated.readfp(buf)
else:
dataToValidated.read_string(dataToBeValidated)
except configparser.DuplicateSectionError:
self._parsing_check_response = True
except configparser.Error as error:
if sys.version_info[0] < 3:
error.message = error.message.replace("\\n","")
@ -571,10 +573,9 @@ class KlipperPlugin(
"You can reload your last changes\n" +
"on the 'Klipper Configuration' tab.\n\n" + str(error))
self._parsing_check_response = False
return
else:
self._parsing_check_response = True
return
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.2"
plugin_description = """A plugin for OctoPrint to configure,control and monitor the Klipper 3D printer software."""