Skip to content

Commit 46d9ed5

Browse files
committed
FIX: Cover case when pyVO already modified the user-agent
1 parent 1482981 commit 46d9ed5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

astroquery/query.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,8 @@ def __init__(self):
193193
if 'astroquery' in user_agents[0]:
194194
if 'pyVO' not in user_agents[1]:
195195
user_agents[0] = f"astroquery/{version.version} pyVO/{pyvo.__version__}"
196+
elif 'pyVO' in user_agents[0]:
197+
user_agents[0] = f"astroquery/{version.version} pyVO/{pyvo.__version__}"
196198
else:
197199
user_agents = [f"astroquery/{version.version} pyVO/{pyvo.__version__} "
198200
f"Python/{platform.python_version()} ({platform.system()})"] + user_agents

0 commit comments

Comments
 (0)