From f0d8f79676b846c304e5f06b358cc1984d2df8c8 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Fri, 17 Aug 2018 00:24:51 -0500 Subject: [PATCH] Revert "Try to retry `InvalidRequestError` from sqlalchemy" This reverts commit 4d0223e3051b5a1bc7e445e1633aafa42386948e. well, that didn't work --- tailbone/tweens.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tailbone/tweens.py b/tailbone/tweens.py index 0684d3fa..f944a66f 100644 --- a/tailbone/tweens.py +++ b/tailbone/tweens.py @@ -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: