File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -440,12 +440,17 @@ async def get_rsyncer_info(
440440 token = instrument_server_tokens [session_id ]["access_token" ]
441441 async with aiohttp .ClientSession () as clientsession :
442442 async with clientsession .get (
443- f"{ machine_config .instrument_server_url } /sessions/{ sanitise ( str ( session_id )) } /rsyncer_info" ,
443+ f"{ machine_config .instrument_server_url } /sessions/{ session_id } /rsyncer_info" ,
444444 headers = {"Authorization" : f"Bearer { token } " },
445445 ) as resp :
446446 data = await resp .json ()
447447 except KeyError :
448448 data = []
449+ except Exception :
450+ log .warning (
451+ "Exception encountered gathering rsyncer info from the instrument server" ,
452+ exc_info = True ,
453+ )
449454 combined_data = []
450455 data_source_lookup = {d ["source" ]: d for d in data }
451456 for ri in rsync_instances :
You can’t perform that action at this time.
0 commit comments