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

Fix AttributeError on detect of tuple assign condition #931

Merged
merged 1 commit into from
Jul 14, 2022

Commits on Jul 12, 2022

  1. Fix AttributeError on detect of tuple assign condition

    In a specific example where a tuple is assigned to a call
    such as a choice of options, Bandit throws a traceback due
    to an assumption the assign is to a value of another tuple
    instead of a call.
    
    This change will avoid the traceback, but not necessarily help
    in detection of an XSS in this example.
    
    Fixes PyCQA#520
    
    Signed-off-by: Eric Brown <eric_wade_brown@yahoo.com>
    ericwb committed Jul 12, 2022
    Configuration menu
    Copy the full SHA
    9d14e44 View commit details
    Browse the repository at this point in the history