changeset 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 263fed3ce354
children b9a5418e9f2e
files libervia/server/tasks.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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))