mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
OP-3953 - handle missing registry json file
This commit is contained in:
parent
94aa11f116
commit
222c64b0c6
1 changed files with 5 additions and 1 deletions
|
|
@ -112,7 +112,11 @@ class StandaloneOverlayWidget(QtWidgets.QFrame):
|
|||
self._projects_model.refresh()
|
||||
|
||||
setting_registry = TrayPublisherRegistry()
|
||||
project_name = setting_registry.get_item("project_name")
|
||||
try:
|
||||
project_name = setting_registry.get_item("project_name")
|
||||
except ValueError:
|
||||
project_name = None
|
||||
|
||||
if project_name:
|
||||
index = None
|
||||
src_index = self._projects_model.find_project(project_name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue