Skip to content

Commit 202a244

Browse files
committed
Address review
1 parent 58129f9 commit 202a244

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/murfey/server/api/instrument.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)