diff --git a/pype/lib/applications.py b/pype/lib/applications.py index cc819abf51..46141030de 100644 --- a/pype/lib/applications.py +++ b/pype/lib/applications.py @@ -53,10 +53,10 @@ class ApplictionExecutableNotFound(Exception): for executable_path in application.executables: details += "\n- " + executable_path - self.message = msg.format(application.full_label, application.app_name) + self.msg = msg.format(application.full_label, application.app_name) self.details = details - exc_mgs = str(self.message) + exc_mgs = str(self.msg) if details: # Is good idea to pass new line symbol to exception message? exc_mgs += "\n" + details diff --git a/pype/modules/ftrack/actions/action_applications.py b/pype/modules/ftrack/actions/action_applications.py index 89016043dc..a75b581ce3 100644 --- a/pype/modules/ftrack/actions/action_applications.py +++ b/pype/modules/ftrack/actions/action_applications.py @@ -185,7 +185,7 @@ class AppplicationsAction(BaseAction): self.log.warning(exc.exc_msg) return { "success": False, - "message": exc.message + "message": exc.msg } except ApplicationLaunchFailed as exc: diff --git a/pype/tools/launcher/actions.py b/pype/tools/launcher/actions.py index 0a1b73daaf..6d0c94b676 100644 --- a/pype/tools/launcher/actions.py +++ b/pype/tools/launcher/actions.py @@ -172,7 +172,7 @@ class ApplicationAction(api.Action): except ApplictionExecutableNotFound as exc: details = exc.details - msg = exc.message + msg = exc.msg log_msg = str(msg) if details: log_msg += "\n" + details