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