[tester] ERROR Bandit internal error running: hashlib on file ../ansible/lib/ansible/plugins/inventory/__init__.py at line 317: 'name'Traceback (most recent call last):
File "/Users/browne/workspace/bandit/bandit/core/tester.py", line 53, in run_tests
result = test(context)
File "/Users/browne/workspace/bandit/bandit/plugins/hashlib_insecure_functions.py", line 115, in hashlib
return _hashlib_func(context)
File "/Users/browne/workspace/bandit/bandit/plugins/hashlib_insecure_functions.py", line 57, in _hashlib_func
name = args[0] if args else keywords["name"]
KeyError: 'name'
Shouldn't see any tracebacks from Bandit unless there are errors in the Bandit code itself.
Describe the bug
Reproduction steps
Expected behavior
Shouldn't see any tracebacks from Bandit unless there are errors in the Bandit code itself.
Bandit version
1.7.3
Python version
3.9
Additional context
No response