Commit 0d547cc4 authored by Pierre-Antoine Rouby's avatar Pierre-Antoine Rouby
Browse files

Scripts: Fix return value.

Showing with 2 additions and 2 deletions
+2 -2
...@@ -31,4 +31,4 @@ class ScriptHello(AScript): ...@@ -31,4 +31,4 @@ class ScriptHello(AScript):
def run(self): def run(self):
logger.info("Hello from Pamhyr2 script !") logger.info("Hello from Pamhyr2 script !")
return True return 0
...@@ -90,7 +90,7 @@ def main(): ...@@ -90,7 +90,7 @@ def main():
application = scripts[script](app, conf, sys.argv) application = scripts[script](app, conf, sys.argv)
ret = application.run() ret = application.run()
if not ret: if ret != 0:
application.usage() application.usage()
else: else:
# No args, run Pamhyr2 interface # No args, run Pamhyr2 interface
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment