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

important section is mandatory when setup.cfg exists #42

Open
sk- opened this issue May 16, 2018 · 0 comments
Open

important section is mandatory when setup.cfg exists #42

sk- opened this issue May 16, 2018 · 0 comments

Comments

@sk-
Copy link

sk- commented May 16, 2018

If you already have a setup.cfg file in your project, then it is mandatory to have the important section in it.

Without it the command fails with:

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/configparser.py", line 846, in items
    d.update(self._sections[section])
KeyError: 'important'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/user/.virtualenvs/venv/bin/important", line 7, in <module>
    from important.__main__ import check
  File "/Users/user/.virtualenvs/venv/lib/python3.6/site-packages/important/__main__.py", line 37, in <module>
    dict(map(split, CONFIG.items('important')))
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/configparser.py", line 849, in items
    raise NoSectionError(section)
configparser.NoSectionError: No section: 'important'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant