From 3b78b52204de48e09e726f5c1d15480bf846ee79 Mon Sep 17 00:00:00 2001 From: Takafumi Arakaki Date: Wed, 13 Mar 2013 23:24:26 +0100 Subject: [PATCH] Rename MultiLevelAttributeErro to UncaughtAttributeError --- jedi/common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jedi/common.py b/jedi/common.py index 83337eef..37d3bb21 100644 --- a/jedi/common.py +++ b/jedi/common.py @@ -16,7 +16,7 @@ class MultiLevelStopIteration(Exception): pass -class MultiLevelAttributeError(Exception): +class UncaughtAttributeError(Exception): """ Important, because `__getattr__` and `hasattr` catch AttributeErrors implicitly. This is really evil (mainly because of `__getattr__`). @@ -42,7 +42,7 @@ def rethrow_uncaught(func): return func(*args, **kwds) except AttributeError: exc_info = sys.exc_info() - reraise(MultiLevelAttributeError, exc_info[2]) + reraise(UncaughtAttributeError, exc_info[2]) return wrapper