File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
cads_processing_api_service Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ def authenticate_user(
111
111
request_url ,
112
112
headers = {
113
113
auth_header [0 ]: auth_header [1 ],
114
- config .PORTAL_HEADER_NAME : portal_header , # type: ignore
114
+ config .PORTAL_HEADER_NAME : portal_header ,
115
115
},
116
116
)
117
117
if response .status_code in (
Original file line number Diff line number Diff line change @@ -288,7 +288,9 @@ def get_jobs(
288
288
List of jobs status information.
289
289
"""
290
290
user_uid , _ = auth .authenticate_user (auth_header , portal_header )
291
- portals = [p .strip () for p in portal_header .split ("," )]
291
+ portals = (
292
+ [p .strip () for p in portal_header .split ("," )] if portal_header else None
293
+ )
292
294
job_filters = {
293
295
"process_id" : processID ,
294
296
"status" : status ,
@@ -405,7 +407,9 @@ def get_job(
405
407
Job status information.
406
408
"""
407
409
user_uid , _ = auth .authenticate_user (auth_header , portal_header )
408
- portals = [p .strip () for p in portal_header .split ("," )]
410
+ portals = (
411
+ [p .strip () for p in portal_header .split ("," )] if portal_header else None
412
+ )
409
413
try :
410
414
compute_sessionmaker = db_utils .get_compute_sessionmaker (
411
415
mode = db_utils .ConnectionMode .read
You can’t perform that action at this time.
0 commit comments