mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
actions: Don't repeat action traceback in stderr
It is already available separately and now printed nicely. In cases where the exception is caused outside of the action method, continue to print stderr. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
6f0897e702
commit
68b52295e7
@ -331,7 +331,6 @@ def _privileged_call(module_name, action_name, arguments):
|
||||
return_values = func(*arguments['args'], **arguments['kwargs'])
|
||||
return_value = {'result': 'success', 'return': return_values}
|
||||
except Exception as exception:
|
||||
logger.exception('Error executing action: %s', exception)
|
||||
return_value = {
|
||||
'result': 'exception',
|
||||
'exception': {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user