Mercurial > libervia-web
diff libervia/server/tasks.py @ 1189:170802865156
server (tasks): fixed findCommand when first name can't be found
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 27 May 2019 09:06:45 +0200 |
parents | 5baf7ece44a0 |
children | b2d067339de3 |
line wrap: on
line diff
--- a/libervia/server/tasks.py Sun May 26 22:19:42 2019 +0200 +++ b/libervia/server/tasks.py Mon May 27 09:06:45 2019 +0200 @@ -189,7 +189,8 @@ cmd_path = which(n)[0].encode('utf-8') except IndexError: pass - return cmd_path + else: + return cmd_path raise exceptions.NotFound(_( u"Can't find {name} command, did you install it?").format(name=name))