You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Python version and virtual environment information: 3.12.3
google-cloud- version: google-cloud-ndb==2.3.1
Steps to reproduce
Call get_by_id with something that triggers an error, e.g. an out of range value
Code example
fromgoogle.cloudimportndbclassMyModel():
foo=ndb.IntegerProperty()
deftest_foo():
# trigger an out of range errorMyModel.get_by_id(15521907085945043008)
Stack trace
self = _TaskletFuture('get') <126572934096624>, send_value = None
def _advance_tasklet(self, send_value=None, error=None):
"""Advance a tasklet one step by sending in a value or error."""
# Avoid Python 2.7 import error
from google.cloud.ndb import context as context_module
try:
with self.context.use():
# Send the next value or exception into the generator
if error:
traceback = error.__traceback__
> yielded = self.generator.throw(type(error), error, traceback)
E DeprecationWarning: the (type, exc, tb) signature of throw() is deprecated, use the single-arg signature instead.
The text was updated successfully, but these errors were encountered:
Deprecation warning here in python 3.12:
python-ndb/google/cloud/ndb/tasklets.py
Line 319 in 988d321
Environment details
Steps to reproduce
Code example
Stack trace
The text was updated successfully, but these errors were encountered: