Merge pull request #84 from jonasvp/master

Use a non-zero exit code on errors in scripts
main
Vincent Driessen 13 years ago
commit 8bf0b8eb93

@ -174,3 +174,4 @@ def main():
interval(args.interval, func, args) interval(args.interval, func, args)
except ConnectionError as e: except ConnectionError as e:
print(e) print(e)
sys.exit(1)

@ -66,3 +66,4 @@ def main():
w.work(burst=args.burst) w.work(burst=args.burst)
except ConnectionError as e: except ConnectionError as e:
print(e) print(e)
sys.exit(1)

Loading…
Cancel
Save