diff options
| author | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2008-05-13 12:06:07 +0200 |
|---|---|---|
| committer | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2008-05-13 12:06:07 +0200 |
| commit | b791f43548cb4069d3c6f81d4a475540ebe60a58 (patch) | |
| tree | 2aa3053aa8f1319d4d1fc4b9c0138355ae9e58b6 /inference.py | |
| parent | dedb0fc5fb17855928adb682a829aff10bbbb92d (diff) | |
| download | astroid-git-b791f43548cb4069d3c6f81d4a475540ebe60a58.tar.gz | |
catch everything since other exceptions such a ZeroDivisionError or ValueError may be raised
Diffstat (limited to 'inference.py')
| -rw-r--r-- | inference.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inference.py b/inference.py index 024bde55..e2d41b78 100644 --- a/inference.py +++ b/inference.py @@ -452,7 +452,7 @@ def _infer_operator(self, context=None, impl=None, meth='__method__'): continue try: value = impl(lhsvalue, rhsvalue) - except TypeError: + except: # TypeError: yield YES continue if type(value) is type(lhsvalue): |
