mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
generator: do not drop the whole module in case there are broken __repr__ defined
This commit is contained in:
@@ -284,7 +284,13 @@ class ModuleRedeclarator(object):
|
||||
else:
|
||||
# a forward / circular declaration happens
|
||||
notice = ""
|
||||
real_value = cleanup(repr(p_value))
|
||||
try:
|
||||
representation = repr(p_value)
|
||||
except Exception:
|
||||
import traceback
|
||||
traceback.print_exc(file=sys.stderr)
|
||||
return
|
||||
real_value = cleanup(representation)
|
||||
if found_name:
|
||||
if found_name == as_name:
|
||||
notice = " # (!) real value is %r" % real_value
|
||||
|
||||
Reference in New Issue
Block a user