From fd515f2a07824b620d96ad1681266180424dcbde Mon Sep 17 00:00:00 2001 From: ishaan-jaff Date: Thu, 26 Oct 2023 09:38:30 -0700 Subject: [PATCH] (fix) loggers langfuse - print import exception --- litellm/integrations/langfuse.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litellm/integrations/langfuse.py b/litellm/integrations/langfuse.py index 75826ddfb00..20a1c1fde03 100644 --- a/litellm/integrations/langfuse.py +++ b/litellm/integrations/langfuse.py @@ -13,8 +13,8 @@ class LangFuseLogger: def __init__(self): try: from langfuse import Langfuse - except: - raise Exception("\033[91mLangfuse not installed, try running 'pip install langfuse' to fix this error\033[0m") + except Exception as e: + raise Exception("\033[91mLangfuse not installed, try running 'pip install langfuse' to fix this error\033[0m", e) # Instance variables self.secret_key = os.getenv("LANGFUSE_SECRET_KEY") self.public_key = os.getenv("LANGFUSE_PUBLIC_KEY")