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
I'm trying to handle ConnectionTimeout exception in python SDK, I saw that the request is sent after the function is executed, with flush_at, so try except won't work. What are the ways to catch this exception?
with langfuse.start_as_current_observation(name="test") as span:
some_func()
try:
span.end()
langfuse.flush()
except Exception:
logger.error("\n\nLANGFUSE CONNECTION FAILED\n\n")
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to handle ConnectionTimeout exception in python SDK, I saw that the request is sent after the function is executed, with flush_at, so try except won't work. What are the ways to catch this exception?
Beta Was this translation helpful? Give feedback.
All reactions