nuke: shortcut could be set in project overrides

This commit is contained in:
Jakub Jezek 2022-10-20 16:52:32 +02:00
parent d8bda695ce
commit 88a1e11fae
No known key found for this signature in database
GPG key ID: 730D7C02726179A7

View file

@ -365,7 +365,7 @@ def add_shortcuts_from_presets():
item_label = menu_label_mapping[command_name]
menuitem = menu.findItem(item_label)
menuitem.setShortcut(shortcut_str)
except AttributeError as e:
except (AttributeError, KeyError) as e:
log.error(e)