From 9ba56cbf8a428cc545f2e3ec4f7e605247b3e814 Mon Sep 17 00:00:00 2001 From: "Olivier Wilkinson (reivilibre)" Date: Mon, 17 Aug 2020 18:23:51 +0100 Subject: [PATCH] Fix logic bug in prior code --- synapse/storage/databases/main/transactions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synapse/storage/databases/main/transactions.py b/synapse/storage/databases/main/transactions.py index d55def4f50..3d9010265c 100644 --- a/synapse/storage/databases/main/transactions.py +++ b/synapse/storage/databases/main/transactions.py @@ -160,7 +160,7 @@ class TransactionStore(SQLBaseStore): allow_none=True, ) - if result and result["retry_last_ts"] > 0: + if result and result["retry_last_ts"] and result["retry_last_ts"] > 0: return result else: return None