diff --git a/core/scripts.py b/core/scripts.py index 62290e4575..a405ec1422 100644 --- a/core/scripts.py +++ b/core/scripts.py @@ -2645,7 +2645,7 @@ def add_line(id, name, protocol, metadata_identifier): class UpdateLaneSizeScript(LaneSweeperScript): - def __init__(self, _db, *args, **kwargs): + def __init__(self, _db=None, *args, **kwargs): super().__init__(_db, *args, **kwargs) search = kwargs.get("search_index_client", None) self._search: ExternalSearchIndex = search or ExternalSearchIndex(self._db)