GatorEducator / execexam

:rocket: ExecExam runs executable examinations that assess Python programming skills
https://pypi.org/project/execexam/
1 stars 3 forks source link

Bug: Litellm Requires Internet Connection #15

Open suppo01 opened 2 weeks ago

suppo01 commented 2 weeks ago

The Litellm dependency requires the computer to have an internet connection to run. Without an internet connection, the program crashes. A way to fix this could be to write exception handling or something similar to ensure the program is stopped before it reaches this issue, essentially verifying that there is an internet connection.

gkapfham commented 6 days ago

Hello @hemanialaparthi can you please give a status update towards your completion of a PR that will resolve this issue?

hemanialaparthi commented 6 days ago

Hello @gkapfham! A pull request will be released shortly, and the issue has been resolved. I’ve added exception handling that checks for an internet connection by attempting to connect to Google’s DNS server (8.8.8.8) on port 53, which is a commonly available address. If the connection fails, the program will handle output a message to user early on.