Merge branch 'setuptools-exit' of scop/flake8

This commit is contained in:
Ian Cordasco 2017-01-14 10:33:32 -06:00
commit a0280240fc
No known key found for this signature in database
GPG key ID: 656D3395E4A9791A

View file

@ -94,4 +94,10 @@ class Flake8(setuptools.Command):
self.flake8.report_statistics()
self.flake8.report_benchmarks()
self.flake8.formatter.stop()
self.flake8.exit()
try:
self.flake8.exit()
except SystemExit as e:
# Cause system exit only if exit code is not zero (terminates
# other possibly remaining/pending setuptools commands).
if e.code:
raise