From f217899ea131c5569f46d851be53ead036e98f3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Samohel?= Date: Fri, 1 Nov 2019 09:09:16 +0000 Subject: [PATCH] fixed rv action not to load when preset is missing --- pype/ftrack/actions/action_rv.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pype/ftrack/actions/action_rv.py b/pype/ftrack/actions/action_rv.py index 69c6624b71..e32997e5a9 100644 --- a/pype/ftrack/actions/action_rv.py +++ b/pype/ftrack/actions/action_rv.py @@ -15,6 +15,7 @@ log = Logger().get_logger(__name__) class RVAction(BaseAction): """ Launch RV action """ + ignore_me = "rv" not in config.get_presets() identifier = "rv.launch.action" label = "rv" description = "rv Launcher" @@ -42,8 +43,9 @@ class RVAction(BaseAction): ) else: # if not, fallback to config file location - self.config_data = config.get_presets()['rv']['config'] - self.set_rv_path() + if "rv" in config.get_presets(): + self.config_data = config.get_presets()['rv']['config'] + self.set_rv_path() if self.rv_path is None: return