order_mode: fix to avoid `Dialog.uuid` on null dialog..

distribute_dis
Tyler Goodlet 2023-10-20 13:57:52 -04:00
parent cadc200818
commit d3dab17939
1 changed files with 7 additions and 7 deletions

View File

@ -613,13 +613,13 @@ class OrderMode:
oids: set[str] = set() oids: set[str] = set()
for line in lines: for line in lines:
dialog: Dialog = getattr(line, 'dialog', None) if dialog := getattr(line, 'dialog', None):
oid: str = dialog.uuid oid: str = dialog.uuid
if ( if (
dialog dialog
and oid not in oids and oid not in oids
): ):
oids.add(oid) oids.add(oid)
return oids return oids