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

-v Verbosity overflow, 3+ v's cause a KeyError #61

Closed
KevinHock opened this issue Jul 18, 2018 · 1 comment
Closed

-v Verbosity overflow, 3+ v's cause a KeyError #61

KevinHock opened this issue Jul 18, 2018 · 1 comment
Assignees

Comments

@KevinHock
Copy link
Collaborator

KevinHock commented Jul 18, 2018

Repro: detect-secrets --scan . -vvv

Here lies the relevant stack trace:

Traceback (most recent call last):
  File "/hey/three_six/bin/detect-secrets", line 11, in <module>
    sys.exit(main())
  File "/hey/three_six/lib/python3.6/site-packages/detect_secrets/main.py", line 27, in main
    log.set_debug_level(args.verbose)
  File "/hey/three_six/lib/python3.6/site-packages/detect_secrets/core/log.py", line 46, in _set_debug_level
    self.setLevel(mapping[debug_level])
KeyError: 3
@KevinHock KevinHock changed the title -v Verbosity overflow, 3 v's cause a KeyError -v Verbosity overflow, 3+ v's cause a KeyError Jul 18, 2018
@KevinHock KevinHock self-assigned this Jul 31, 2018
@KevinHock
Copy link
Collaborator Author

Fixed by 0b27002

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