From 49b31535ee594c4563d2f51e07080f009c093f6f Mon Sep 17 00:00:00 2001 From: gferraro Date: Wed, 13 Nov 2024 15:42:30 +0100 Subject: [PATCH] fix error returned --- Melt/chain.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Melt/chain.py b/Melt/chain.py index dcac268..14c3b9e 100755 --- a/Melt/chain.py +++ b/Melt/chain.py @@ -225,7 +225,9 @@ def main(): if __name__ == "__main__": + result = 0 try: - sys.exit(main()) + result = main() except: - sys.exit(1) + result = 1 + sys.exit(result)