Skip to content
Snippets Groups Projects
Commit 21b8a82c authored by jkerdreu's avatar jkerdreu
Browse files

Added logger for run_action errors

git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/trunk@2106 b32b6428-25c9-4566-ad07-03861ab6144f
parent 83d18d84
No related branches found
No related tags found
No related merge requests found
......@@ -374,7 +374,8 @@ def run_action(msg, device):
logger.info("Wrong method parameter [%s] for action %s" %(k, msg.action))
try:
result = method(**params)
except :
except Exception as e:
logger.error(e)
raise XAALError("Error in method:%s params:%s" % (msg.action,params))
else:
raise XAALError("Method %s not found" % msg.action)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment