Skip to content

Commit cbfdaf5

Browse files
committed
reuse session
1 parent f94b71b commit cbfdaf5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/DIRAC/FrameworkSystem/Utilities/diracx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def get_token(
117117
vo = Registry.getVOForGroup(group)
118118
scopes = [f"vo:{vo}", f"group:{group}"] + [f"property:{prop}" for prop in dirac_properties]
119119

120-
r = requests.get(
120+
r = diracx_session.get(
121121
f"{diracxUrl}/api/auth/legacy-exchange",
122122
params={
123123
"preferred_username": username,

0 commit comments

Comments
 (0)