Skip to content

Commit 28cd14d

Browse files
MNT: configparser use strict as False.
when read .cfg file, sometimes it shows DuplicateSectionError.
1 parent cc83034 commit 28cd14d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/diffpy/pdfgui/gui/mainframe.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,8 @@ def __customProperties(self):
298298
self.runningDict = {}
299299

300300
# The configuration parser for getting configuration data.
301-
self.cP = QuotedConfigParser()
301+
# self.cP = QuotedConfigParser()
302+
self.cP = QuotedConfigParser(strict=False) #Long try this to avoid DuplicateSectionError
302303

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

0 commit comments

Comments
 (0)