Skip to content

Commit cafe757

Browse files
emmanuel-ferdmanmaartenbreddels
authored andcommitted
fix: display port in runtime error when server is running
Signed-off-by: Emmanuel Ferdman <[email protected]>
1 parent 5c99c02 commit cafe757

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

solara/test/pytest_plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ def signal_stop(self):
334334

335335
def serve(self):
336336
if self.has_started():
337-
raise RuntimeError("Jupyter server already running, use lsof -i :{self.port} to find the process and kill it")
337+
raise RuntimeError(f"Jupyter server already running, use lsof -i :{self.port} to find the process and kill it")
338338
cmd = (
339339
"voila --no-browser --VoilaTest.log_level=DEBUG --Voila.port_retries=0 --VoilaExecutor.timeout=240"
340340
f' --Voila.port={self.port} --show_tracebacks=True "{self.notebook_path}" --enable_nbextensions=True'

0 commit comments

Comments
 (0)