diff --git a/examples/ShortcutConflict5.py b/examples/ShortcutConflict5.py index d0db992..8fe2b97 100644 --- a/examples/ShortcutConflict5.py +++ b/examples/ShortcutConflict5.py @@ -40,7 +40,7 @@ def main(self): ycpbuiltins.y2milestone("Got event: %1", event) - if event["ID"] == "abort": + if "ID" in event and event["ID"] == "abort": break UI.CloseDialog()