Skip to content

Commit 875d2f2

Browse files
authored
fix(client): auth check on missing credentials (#1224)
1 parent 37b2bb2 commit 875d2f2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

langfuse/_client/client.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1747,6 +1747,12 @@ def auth_check(self) -> bool:
17471747
)
17481748
return True
17491749

1750+
except AttributeError as e:
1751+
langfuse_logger.warning(
1752+
f"Auth check failed: Client not properly initialized. Error: {e}"
1753+
)
1754+
return False
1755+
17501756
except Error as e:
17511757
handle_fern_exception(e)
17521758
raise e

0 commit comments

Comments
 (0)