transaction sate unset
@@ -70,6 +70,7 @@ class Client:
)
# retry on timeout
except (ConnectionError, TimeoutError) as e:
+ config.transaction = False
self.connection.disconnect()
if not (self.connection.retry_on_timeout and isinstance(e, TimeoutError)):
raise
@@ -80,6 +81,9 @@ class Client:
except redis.exceptions.ExecAbortError:
config.transaction = False
raise
+ except Exception:
+ config.transaction = False
+ raise
# === After hook ===
# SELECT db on AUTH
