From 9fd1cc9904bc035f88bdd8261fc14e0c12b7eccb Mon Sep 17 00:00:00 2001 From: Frisk Date: Fri, 6 Sep 2024 19:46:45 +0200 Subject: [PATCH] Fix improper handling of exceptions on redactions --- src/wiki.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wiki.py b/src/wiki.py index dd40459..ab6c5ac 100644 --- a/src/wiki.py +++ b/src/wiki.py @@ -206,7 +206,7 @@ class Wiki: for ID in ids: try: result.add(all_revids[all_revids.index(ID) + 1]) - except (KeyError, ValueError): + except (KeyError, ValueError, IndexError): logger.debug(f"Value {ID} not in {all_revids} or no value after that.") return result