Skip to content

Commit 450014c

Browse files
MNT: fix config ParsingError
1 parent 8d4e99b commit 450014c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/diffpy/pdfgui/gui/mainframe.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,8 @@ def __customProperties(self):
299299

300300
# The configuration parser for getting configuration data.
301301
# self.cP = QuotedConfigParser()
302-
self.cP = QuotedConfigParser(strict=False) #Long try this to avoid DuplicateSectionError
302+
# Long try this to avoid DuplicateSectionError and ParsingError
303+
self.cP = QuotedConfigParser(strict=False, allow_no_value=True)
303304

304305
# Set the program mode
305306
self.mode = "fitting"

0 commit comments

Comments
 (0)