Skip to content

Commit

Permalink
bugfix: get_session() contextmgr usage in consume_signals() (#4888)
Browse files Browse the repository at this point in the history
  • Loading branch information
wssheldon authored and metroid-samus committed Sep 25, 2024
1 parent 9c14cf3 commit 7631468
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dispatch/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -924,8 +924,8 @@ def consume_signals():
from dispatch.database.core import get_session, get_organization_session

install_plugins()
db_session = get_session()
organizations = get_all_organizations(db_session=db_session)
with get_session() as session:
organizations = get_all_organizations(db_session=session)

log = logging.getLogger(__name__)

Expand Down

0 comments on commit 7631468

Please sign in to comment.