summaryrefslogtreecommitdiff
path: root/checkers/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'checkers/utils.py')
-rw-r--r--checkers/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/checkers/utils.py b/checkers/utils.py
index a064404..72a9733 100644
--- a/checkers/utils.py
+++ b/checkers/utils.py
@@ -60,7 +60,7 @@ def clobber_in_except(node):
(False, None) otherwise.
"""
if isinstance(node, astroid.AssAttr):
- return (True, (node.attrname, 'object %r' % (node.expr.name,)))
+ return (True, (node.attrname, 'object %r' % (node.expr.as_string(),)))
elif isinstance(node, astroid.AssName):
name = node.name
if is_builtin(name):