Merge pull request #84 from jonasvp/master

Use a non-zero exit code on errors in scripts
This commit is contained in:
Vincent Driessen 2012-07-09 06:27:20 -07:00
commit 8bf0b8eb93
2 changed files with 2 additions and 0 deletions

View File

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

View File

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