diff options
Diffstat (limited to 'checkers/utils.py')
-rw-r--r-- | checkers/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/checkers/utils.py b/checkers/utils.py index b3ba51b..af1440d 100644 --- a/checkers/utils.py +++ b/checkers/utils.py @@ -417,7 +417,7 @@ def get_argument_from_call(callfunc_node, position=None, keyword=None): try: if position is not None and not isinstance(callfunc_node.args[position], astroid.Keyword): return callfunc_node.args[position] - except IndexError, error: + except IndexError as error: raise NoSuchArgumentError(error) if keyword: for arg in callfunc_node.args: |