Skip to content

Commit 4b141ab

Browse files
author
Robin VAN DE MERGHEL
committed
fix: Minor fixes to avoid unused things and errors
1 parent d7a12b4 commit 4b141ab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Pilot/pilotTools.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ def load_module_from_path(module_name, path_to_module):
6969
basestring = str
7070

7171
try:
72-
from Pilot.proxyTools import getVO, TokenBasedRequest, BaseRequest, refreshPilotToken
72+
from Pilot.proxyTools import getVO, BaseRequest
7373
except ImportError:
74-
from proxyTools import getVO, TokenBasedRequest, BaseRequest, refreshPilotToken
74+
from proxyTools import getVO, BaseRequest
7575

7676
try:
7777
FileNotFoundError # pylint: disable=used-before-assignment
@@ -1061,7 +1061,7 @@ def __init__(self):
10611061
self.log.info("Fetching JWT in DiracX (URL: %s)" % self.diracXServer)
10621062

10631063
config = BaseRequest(
1064-
"%s/api/pilots/token" % (
1064+
"%s/api/auth/secret-exchange" % (
10651065
self.diracXServer
10661066
),
10671067
os.getenv("X509_CERT_DIR"),

0 commit comments

Comments
 (0)