Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If server is off it times out #135

Closed
py-mine-bot opened this issue Feb 15, 2022 · 0 comments
Closed

If server is off it times out #135

py-mine-bot opened this issue Feb 15, 2022 · 0 comments
Labels
Github Import This was auto-imported from upstream repository meta: Not Enough Information Further clarification is needed

Comments

@py-mine-bot
Copy link
Collaborator

9ny4 Authored by 9ny4
Jun 10, 2021
Closed Jun 10, 2021


How can i check if the sever is off? if status = server.status() it breaks the rest of the code so it wont get further

@py-mine-bot
Copy link
Collaborator Author

Iapetus-11 Authored by Iapetus-11
Jun 10, 2021


Learn basic Python and how exceptions work. "it breaks the rest of the code" because it raises an exception signifying that the server isn't on, you need to catch that exception and handle it properly. https://docs.python.org/3/tutorial/errors.html

@py-mine-bot
Copy link
Collaborator Author

kevinkjt2000 Authored by kevinkjt2000
Jun 10, 2021


I'm going to open an issue about better documentation since that could explain exception handling to the masses.
Edit: #136

@py-mine-bot py-mine-bot added Github Import This was auto-imported from upstream repository meta: Not Enough Information Further clarification is needed labels Feb 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Github Import This was auto-imported from upstream repository meta: Not Enough Information Further clarification is needed
Projects
None yet
Development

No branches or pull requests

1 participant