Skip to content

Expired weak references can cause annotation to fail. #78

@mdickinson

Description

@mdickinson

Broken out from the issue 60 discussion: see #60 (comment)

File "C:\Python36\lib\site-packages\refcycle\object_graph.py", line 339, in export_json
self.annotated().export_json(filename=filename)
File "C:\Python36\lib\site-packages\refcycle\object_graph.py", line 279, in annotated
for vertex in self.vertices
File "C:\Python36\lib\site-packages\refcycle\object_graph.py", line 279, in 
for vertex in self.vertices
File "C:\Python36\lib\site-packages\refcycle\annotations.py", line 172, in object_annotation
if isinstance(obj, BASE_TYPES):
ReferenceError: weakly-referenced object no longer exists

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions