Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: having a dict in the config file causes .merge method to fail #162

Open
bob37van opened this issue Jan 6, 2018 · 1 comment
Open

Comments

@bob37van
Copy link

bob37van commented Jan 6, 2018

Given two configuration files, A, and B, if A contains a dict item (such as defined by:
thisDict = """{'foo': 'bar')"""

then if cfgA=ConfigObj(A) and cfgB=ConfigObj(B) then
cfgA.merge(cfgB) # throws an exception

The .merge method iterates through dicts and successfully calls .merge on them, whereas it should iterate through only the dicts which are Sections.

@robdennis
Copy link
Member

robdennis commented Jan 8, 2023

I think I understand this bug report but I'm going to flag it to actually confirm in the code what may be happening

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants