diff options
author | Claudiu Popa <cpopa@cloudbasesolutions.com> | 2015-08-09 00:35:14 +0300 |
---|---|---|
committer | Claudiu Popa <cpopa@cloudbasesolutions.com> | 2015-08-09 00:35:14 +0300 |
commit | bd3ec0e8b82946e8d2a0e30225213edc3e657f16 (patch) | |
tree | 11f82ceb537ad0af5fedea2d77550e5aee0249e2 /pylint/checkers/utils.py | |
parent | c35df18866e9edb9722ecb1d5641c0608f18a4f7 (diff) | |
download | pylint-bd3ec0e8b82946e8d2a0e30225213edc3e657f16.tar.gz |
Handle additional keyword arguments when checking for unnecessary-lambdas.
Diffstat (limited to 'pylint/checkers/utils.py')
-rw-r--r-- | pylint/checkers/utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pylint/checkers/utils.py b/pylint/checkers/utils.py index bc790c5..1aac4b0 100644 --- a/pylint/checkers/utils.py +++ b/pylint/checkers/utils.py @@ -416,10 +416,10 @@ def get_argument_from_call(callfunc_node, position=None, keyword=None): """ if position is None and keyword is None: raise ValueError('Must specify at least one of: position or keyword.') - if position is not None: + if position is not None: try: return callfunc_node.args[position] - except IndexError as error: + except IndexError: pass if keyword and callfunc_node.keywords: for arg in callfunc_node.keywords: |