Skip to content

Commit

Permalink
Update gcp/appengine/frontend_handlers.py
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Pollock <[email protected]>
  • Loading branch information
another-rex and andrewpollock authored Jun 4, 2024
1 parent d99bb06 commit 0999e37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gcp/appengine/frontend_handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ def osv_get_ecosystem_counts_cached():
# We can sometimes not be in ndb context because caching
# runs in a separate thread
if ndb.get_context(raise_context_error=False) is None:
# Make sure this ndb.Client is the same as the one defined in main.py
# IMPORTANT: Ensure this ndb.Client remains consistent with the one defined in main.py
with ndb.Client().context():
return osv_get_ecosystem_counts()

Expand Down

0 comments on commit 0999e37

Please sign in to comment.