mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
changed message attribute to msg
This commit is contained in:
parent
6d9d7235a2
commit
dec7fbc9bc
3 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue