Skip to content

Make example code better describe its failure for newbies#68

Merged
Yepoleb merged 1 commit intoserverstf:masterfrom
overfl0:fix_readme
Sep 16, 2018
Merged

Make example code better describe its failure for newbies#68
Yepoleb merged 1 commit intoserverstf:masterfrom
overfl0:fix_readme

Conversation

@overfl0
Copy link
Copy Markdown
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
Copy Markdown

Coverage Status

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

@Yepoleb
Copy link
Copy Markdown
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