We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8209ba2 commit f66022dCopy full SHA for f66022d
google/cloud/alloydb/connector/client.py
@@ -39,7 +39,7 @@ def _format_user_agent(
39
Appends user-defined user agents to the base default agent.
40
"""
41
agent = f"{USER_AGENT}+{driver}" if driver else USER_AGENT
42
- if custom_user_agent:
+ if custom_user_agent and isinstance(custom_user_agent, str):
43
agent = f"{agent} {custom_user_agent}"
44
45
return agent
0 commit comments