Skip to content

Commit a5e1fa5

Browse files
committed
Update failed client post to use url_path_for
1 parent d68a67a commit a5e1fa5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/murfey/util/client.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,11 @@ def capture_post(url: str, json: Union[dict, list] = {}) -> Optional[requests.Re
9191
client_config = read_config()
9292
failure_url = urlunparse(
9393
split_url._replace(
94-
path=f"/instruments/{client_config['Murfey']['instrument_name']}/failed_client_post"
94+
path=url_path_for(
95+
"session_control.router",
96+
"failed_client_post",
97+
instrument_name=client_config["Murfey"]["instrument_name"],
98+
)
9599
)
96100
)
97101
try:

0 commit comments

Comments
 (0)