Skip to content

Commit

Permalink
Fix issue #82: default problog cli task now returns retcode instead o…
Browse files Browse the repository at this point in the history
…f result.
  • Loading branch information
Robin Manhaeve committed Mar 25, 2022
1 parent 576b6fd commit b719042
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions problog/tasks/probability.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,7 @@ def main(argv, result_handler=None):
if args.propagate_weights:
args.propagate_weights = semiring

retcode = 0
result = None
if args.combine:
result = execute(args.filenames, args.koption, semiring, **vars(args))
Expand All @@ -430,9 +431,7 @@ def main(argv, result_handler=None):

if args.timeout:
stop_timer()

return result

return retcode

if __name__ == "__main__":
main(sys.argv[1:])

0 comments on commit b719042

Please sign in to comment.