mirror of
https://gitlab.com/chicken-riders/RcGcDb.git
synced 2025-02-23 00:54:09 +00:00
Fix improper handling of exceptions on redactions
This commit is contained in:
parent
5011659b1d
commit
9fd1cc9904
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue