What is the best technique with rethinkb and python to deal with empty result. I try this, but catching exceptions is not satisfactory.
@staticmethod
def get_by_mail(mail):
try:
return User(
r.table('users').filter({"mail": mail}).limit(1).nth(0).run()
)
except RqlRuntimeError:
return None
If anyone has tried other techniques, I am very interested. Thanks for your help.