AssertionError when querying /browse/origin/directory/?origin_url=
For example: https://archive.softwareheritage.org/browse/origin/directory/?origin_url=
Sentry Issue: SWH-WEBAPP-5CA
AssertionError:
File "django/core/handlers/base.py", line 197, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/opt/swh/.local/lib/python3.10/site-packages/swh/web/browse/views/origin.py", line 37, in origin_directory_browse
return browse_snapshot_directory(
File "/opt/swh/.local/lib/python3.10/site-packages/swh/web/browse/snapshot_context.py", line 776, in browse_snapshot_directory
snapshot_context = get_snapshot_context(
File "/opt/swh/.local/lib/python3.10/site-packages/swh/web/browse/snapshot_context.py", line 490, in get_snapshot_context
assert snapshot_id is not None