Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/murfey/server/ispyb.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import datetime
import logging
from typing import Callable, List, Literal, Optional
from typing import Callable, Generator, List, Literal, Optional

import ispyb

Expand Down Expand Up @@ -535,7 +535,7 @@ def do_buffer_lookup(self, app_id: int, uuid: int) -> Optional[int]:
return reference


def _get_session() -> sqlalchemy.orm.Session:
def _get_session() -> Generator[Optional[sqlalchemy.orm.Session], None, None]:
db = Session()
if db is None:
yield None
Expand Down