Skip to content

Commit

Permalink
testing fixes for PyCQA#1003, modified to not cause any potential errors
Browse files Browse the repository at this point in the history
  • Loading branch information
rkuczer committed Apr 4, 2023
1 parent cd72d14 commit 9dfee86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bandit/core/utils.py
Expand Up @@ -373,7 +373,7 @@ def check_ast_node(name):


def get_nosec(nosec_lines, context):
for lineno in [context["lineno"], *context["linerange"]]:
for lineno in [context["lineno"]] + context["linerange"]:
nosec = nosec_lines.get(lineno)
if nosec is not None:
return nosec
Expand Down

0 comments on commit 9dfee86

Please sign in to comment.