From c41a652e18d22ed97f03a2764a73016e7b7b8938 Mon Sep 17 00:00:00 2001 From: Ondrej Samohel Date: Tue, 9 Mar 2021 22:41:32 +0100 Subject: [PATCH] updated avalon-core, few minor fixes --- igniter/install_dialog.py | 2 +- igniter/tools.py | 7 ++++--- repos/avalon-core | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/igniter/install_dialog.py b/igniter/install_dialog.py index ca973d792c..0eb518c2e3 100644 --- a/igniter/install_dialog.py +++ b/igniter/install_dialog.py @@ -477,7 +477,7 @@ class InstallDialog(QtWidgets.QDialog): self.done(3) return - if self.path != "": + if self.path and len(self.path) > 0: valid, reason = validate_path_string(self.path) if not valid: diff --git a/igniter/tools.py b/igniter/tools.py index 5e071bbc18..4ed4ae67f4 100644 --- a/igniter/tools.py +++ b/igniter/tools.py @@ -250,7 +250,8 @@ def get_pype_path_from_db(url: str) -> Union[str, None]: db = client.pype col = db.settings - global_settings = col.find_one( - {"type": "global_settings"}, {"data": 1}).get("data", {}) - + global_settings = col.find_one({"type": "global_settings"}, {"data": 1}) + if not global_settings: + return None + global_settings.get("data", {}) return global_settings.get("pype_path", {}).get(platform.system().lower()) diff --git a/repos/avalon-core b/repos/avalon-core index eae14f2960..9e6b0d02e5 160000 --- a/repos/avalon-core +++ b/repos/avalon-core @@ -1 +1 @@ -Subproject commit eae14f2960c4ccf2f0211e0726e88563129c0296 +Subproject commit 9e6b0d02e5a147cbafdcaeee7d786d4767e14c94