Skip to content

Commit 6378f55

Browse files
fix: sb.expose_http() sync method returning None (#16)
1 parent bb05d2d commit 6378f55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/deno_sandbox/sandbox.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ def expose_http(self, port: Optional[int] = None, pid: Optional[int] = None) ->
476476
An exposed service can either be a service listening on an arbitrary HTTP
477477
port, or a JavaScript runtime that can handle HTTP requests.
478478
"""
479-
self._client._bridge.run(self._async.expose_http(port=port, pid=pid))
479+
return self._client._bridge.run(self._async.expose_http(port=port, pid=pid))
480480

481481
def expose_ssh(self) -> ExposeSSHResult:
482482
"""Expose an isolate over SSH, allowing access to the isolate's shell.

0 commit comments

Comments
 (0)