mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Scripts: Fix return value.
This commit is contained in:
1 parent
973e6c8080
commit
0d547cc469
2 files changed
+2
-2
No files matched your search
@@ -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
|
||||||
+1
-1
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user