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

Make example code better describe its failure for newbies #68

Merged
merged 1 commit into from
Sep 16, 2018

Conversation

overfl0
Copy link
Contributor

@overfl0 overfl0 commented Sep 15, 2018

The current code for querying the master server in README.md assumes only the master server can timeout, which makes people think something is wrong with the master server (or the library), while iterating over game servers (many of which will be unreachable for some reason).

An example of an issue caused by this lack of error checking here: #63

Changes:

  • Use a separate try/except per server for timeout detection.
  • Use python3 print everywhere.

Note: I have just modified the README.md file. The Travis checks were already failing previously.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.09%) to 70.24% when pulling 24c68dd on overfl0:fix_readme into 526bb0e on serverstf:master.

@Yepoleb
Copy link
Member

Yepoleb commented Sep 16, 2018

Good idea, thanks for your contribution!

@Yepoleb Yepoleb merged commit 479768a into serverstf:master Sep 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants