Bug 700203: Followup because python is insane.

This commit is contained in:
Kyle Huey 2011-11-07 07:16:24 -05:00
parent 32320a58e3
commit ad6b1c9560

View File

@ -216,7 +216,7 @@ class PythonJob(Job):
return e.exitcode
except:
e = sys.exc_info()[1]
if isinstance(e, SystemExit) and e.code == '0':
if isinstance(e, SystemExit) and (e.code == 0 or e.code == '0'):
pass # sys.exit(0) is not a failure
else:
print >>sys.stderr, e