Revert "Try to retry InvalidRequestError from sqlalchemy"

This reverts commit 4d0223e305.

well, that didn't work
This commit is contained in:
Lance Edgar 2018-08-17 00:24:51 -05:00
parent 4d0223e305
commit f0d8f79676

View file

@ -27,7 +27,7 @@ Tween Factories
from __future__ import unicode_literals, absolute_import
import six
from sqlalchemy.exc import OperationalError, InvalidRequestError
from sqlalchemy.exc import OperationalError
def sqlerror_tween_factory(handler, registry):
@ -56,7 +56,7 @@ def sqlerror_tween_factory(handler, registry):
try:
response = handler(request)
except (OperationalError, InvalidRequestError) as error:
except OperationalError as error:
# if connection is invalid, allow retry
if error.connection_invalidated: