mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Fix raise error
This commit is contained in:
parent
d03cdb4e95
commit
8012f12797
1 changed files with 2 additions and 1 deletions
|
@ -404,7 +404,8 @@ def hook_exec(path, args=None, raise_on_error=False, no_trace=False,
|
||||||
else:
|
else:
|
||||||
returnjson = {}
|
returnjson = {}
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
returnjson = {}
|
os.remove(stdreturn)
|
||||||
|
os.rmdir(stdreturndir)
|
||||||
raise MoulinetteError(
|
raise MoulinetteError(
|
||||||
errno.EIO, m18n.n('hook_json_return_error', path=path, msg=str(e)))
|
errno.EIO, m18n.n('hook_json_return_error', path=path, msg=str(e)))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue