gaphor / gaphor

Gaphor is the simple modeling tool
https://gaphor.org
1.87k stars 200 forks source link

AttributeErrors During Unlink Phase While Closing Model #252

Closed danyeaw closed 4 years ago

danyeaw commented 4 years ago

I'm submitting a...

Current behavior

  1. Open gaphor/UML/uml2.gaphor
  2. Once it is loaded, close Gaphor
    gaphor.UML.properties ERROR Failed to unlink _stub_7fa5d9d82eb0 from <gaphor.UML.uml2.Class object at 0x7fa5d9dfda30>
    Traceback (most recent call last):
    File "/home/dan/Projects/gaphor/gaphor/UML/properties.py", line 549, in unlink
    values = getattr(obj, self._name)
    AttributeError: 'Class' object has no attribute '_stub_7fa5d9d82eb0'

    It looks like these errors are being thrown for most or all of the objects as they unlink.

Expected behavior

No Errors.

System Information

OS:

NOTES:

amolenaar commented 4 years ago

Fixed by #258