order_mode: fix to avoid `Dialog.uuid` on null dialog..
parent
cadc200818
commit
d3dab17939
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue