return HTTP 500 on errors

This commit is contained in:
Alexey Lavrenuke (load testing) 2013-08-22 17:34:22 +04:00
parent ea0d163bdb
commit 82c0cc9991

View File

@ -61,7 +61,7 @@ class SqlGun(AbstractPlugin):
except exc.ResourceClosedError as e:
pass
except exc.SQLAlchemyError as e:
httpCode = e.orig.args[0]
httpCode = 500
self.log.debug(e.orig.args)
rt = int((time.time() - start_time) * 1000)
data_item = Sample(