Skip to content

Commit 070f20a

Browse files
committed
Disabled server retries
1 parent b34715d commit 070f20a

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

interpreter/core/async_core.py

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -779,18 +779,20 @@ def run(self, host=None, port=None, retries=5):
779779
else:
780780
print(f"Server will run at http://{self.host}:{self.port}")
781781

782-
for _ in range(retries):
783-
try:
784-
self.uvicorn_server.run()
785-
break
786-
except KeyboardInterrupt:
787-
break
788-
except ImportError as e:
789-
if _ == 4: # If this is the last attempt
790-
raise ImportError(
791-
str(e)
792-
+ """\n\nPlease ensure you have run `pip install "open-interpreter[server]"` to install server dependencies."""
793-
)
794-
except:
795-
print("An unexpected error occurred:", traceback.format_exc())
796-
print("Server restarting.")
782+
self.uvicorn_server.run()
783+
784+
# for _ in range(retries):
785+
# try:
786+
# self.uvicorn_server.run()
787+
# break
788+
# except KeyboardInterrupt:
789+
# break
790+
# except ImportError as e:
791+
# if _ == 4: # If this is the last attempt
792+
# raise ImportError(
793+
# str(e)
794+
# + """\n\nPlease ensure you have run `pip install "open-interpreter[server]"` to install server dependencies."""
795+
# )
796+
# except:
797+
# print("An unexpected error occurred:", traceback.format_exc())
798+
# print("Server restarting.")

0 commit comments

Comments
 (0)