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()
for line in lines:
dialog: Dialog = getattr(line, 'dialog', None)
oid: str = dialog.uuid
if (
dialog
and oid not in oids
):
oids.add(oid)
if dialog := getattr(line, 'dialog', None):
oid: str = dialog.uuid
if (
dialog
and oid not in oids
):
oids.add(oid)
return oids