From e704cc2a48c6adc5d3da79a49ed02961edfc3b4a Mon Sep 17 00:00:00 2001 From: Kokokokoka Date: Fri, 24 Sep 2021 12:19:51 +0300 Subject: In `_purge_history_txn`, ensure that txn.fetchall has elements before accessing rows (#10690) This change adds a check for row existence before accessing row element, this should fix issue #10669 Signed-off-by: Vasya Boytsov vasiliy.boytsov@phystech.edu --- changelog.d/10690.bugfix | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/10690.bugfix (limited to 'changelog.d') diff --git a/changelog.d/10690.bugfix b/changelog.d/10690.bugfix new file mode 100644 index 0000000000..059eea7464 --- /dev/null +++ b/changelog.d/10690.bugfix @@ -0,0 +1 @@ +Fix a long-standing bug that caused an `AssertionError` when purging history in certain rooms. Contributed by @Kokokokoka. -- cgit 1.4.1