Scripts: Fix return value.

This commit is contained in:
Pierre-Antoine Rouby committed 2023-09-19 17:25:30 +02:00
1 parent 973e6c8080
commit 0d547cc469
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -31,4 +31,4 @@ class ScriptHello(AScript):
def run(self):
logger.info("Hello from Pamhyr2 script !")
return True
return 0
+1 -1
View File
@@ -90,7 +90,7 @@ def main():
application = scripts[script](app, conf, sys.argv)
ret = application.run()
if not ret:
if ret != 0:
application.usage()
else:
# No args, run Pamhyr2 interface