test for parsingerror

This commit is contained in:
thelastWallE 2021-04-04 19:00:56 +02:00
parent 2d6aadf510
commit ec2d546ced
1 changed files with 2 additions and 1 deletions

View File

@ -553,7 +553,6 @@ class KlipperPlugin(
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","")
@ -574,6 +573,8 @@ class KlipperPlugin(
"You can reload your last changes\n" +
"on the 'Klipper Configuration' tab.\n\n" + str(error))
self._parsing_check_response = False
else:
self._parsing_check_response = True
return
#incorrectlines = []