Skip to content

Commit

Permalink
Clean up of tests and draw io error logs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Semprini committed Sep 25, 2024
1 parent c10bbb0 commit 355e2b1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mdg/parse/drawio_xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,9 @@ def association_parse(package: UMLPackage, element, root):
element_type = element.get("UMLType")

if source == None or target == None:
logger.warn(f"Cannot find association class. Source Id:{cell.get("source")}, Target Id: {cell.get("target")}")
s = cell.get("source")
t = cell.get("target")
logger.warn(f"Cannot find association class. Source Id:{s}, Target Id: {t}")
return
else:
association = UMLAssociation(package, source, target, id, UMLAssociationType[element_type.upper()])
Expand Down

0 comments on commit 355e2b1

Please sign in to comment.