changed message attribute to msg

This commit is contained in:
iLLiCiTiT 2020-11-19 11:54:33 +01:00
parent 6d9d7235a2
commit dec7fbc9bc
3 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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:

View file

@ -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