Loading
Fix ``get_accessible_job`` if called without session
Fixes https://github.com/galaxyproject/galaxy/issues/18399: ``` ExceptionGroup: unhandled errors in a TaskGroup File "starlette/_utils.py", line 87, in collapse_excgroups yield File "starlette/middleware/base.py", line 190, in __call__ async with anyio.create_task_group() as task_group: File "anyio/_backends/_asyncio.py", line 678, in __aexit__ raise BaseExceptionGroup( AttributeError: 'NoneType' object has no attribute 'id' (25 additional frame(s) were not displayed) ... File "galaxy/webapps/galaxy/fast_app.py", line 109, in add_x_frame_options response = await call_next(request) File "galaxy/webapps/galaxy/api/jobs.py", line 261, in common_problems job = self.service.get_job(trans=trans, job_id=job_id) File "galaxy/webapps/galaxy/services/jobs.py", line 121, in get_job return self.job_manager.get_accessible_job(trans, decoded_job_id=job_id) File "galaxy/managers/jobs.py", line 271, in get_accessible_job else (job.session_id == trans.get_galaxy_session().id) ```