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

Implement a check on ini files #1140

Open
lra opened this issue Mar 22, 2018 · 0 comments
Open

Implement a check on ini files #1140

lra opened this issue Mar 22, 2018 · 0 comments
Labels

Comments

@lra
Copy link
Owner

lra commented Mar 22, 2018

To prevent errors like:

Traceback (most recent call last):
  File "/usr/local/bin/mackup", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.6/site-packages/mackup/main.py", line 65, in main
    app_db = ApplicationsDatabase()
  File "/usr/local/lib/python3.6/site-packages/mackup/appsdb.py", line 34, in __init__
    if config.read(config_file):
  File "/usr/local/Cellar/python/3.6.4_4/Frameworks/Python.framework/Versions/3.6/lib/python3.6/configparser.py", line 697, in read
    self._read(fp, filename)
  File "/usr/local/Cellar/python/3.6.4_4/Frameworks/Python.framework/Versions/3.6/lib/python3.6/configparser.py", line 1092, in _read
    fpname, lineno)
configparser.DuplicateOptionError: While reading from '/usr/local/lib/python3.6/site-packages/mackup/applications/bettertouchtool.cfg' [line  9]: option 'Library/Application Support/BetterTouchTool/btt_data_store.v2' in section 'configuration_files' already exists
@lra lra added the TOFIX label Mar 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant