Skip to content

Commit

Permalink
Merge pull request #89 from TheWlr9/master
Browse files Browse the repository at this point in the history
Variable name change
  • Loading branch information
kevinkjt2000 authored Aug 6, 2020
2 parents 40d12e5 + c89a34b commit 86f2ae1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions mcstatus/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ def lookup(address):

return MinecraftServer(host, port)

def ping(self, retries=3, **kwargs):
def ping(self, tries=3, **kwargs):
connection = TCPSocketConnection((self.host, self.port))
exception = None
for attempt in range(retries):
for attempt in range(tries):
try:
pinger = ServerPinger(connection, host=self.host, port=self.port, **kwargs)
pinger.handshake()
Expand All @@ -39,10 +39,10 @@ def ping(self, retries=3, **kwargs):
else:
raise exception

def status(self, retries=3, **kwargs):
def status(self, tries=3, **kwargs):
connection = TCPSocketConnection((self.host, self.port))
exception = None
for attempt in range(retries):
for attempt in range(tries):
try:
pinger = ServerPinger(connection, host=self.host, port=self.port, **kwargs)
pinger.handshake()
Expand All @@ -54,7 +54,7 @@ def status(self, retries=3, **kwargs):
else:
raise exception

def query(self, retries=3):
def query(self, tries=3):
exception = None
host = self.host
try:
Expand All @@ -64,7 +64,7 @@ def query(self, retries=3):
host = str(answer).rstrip(".")
except Exception as e:
pass
for attempt in range(retries):
for attempt in range(tries):
try:
connection = UDPSocketConnection((host, self.port))
querier = ServerQuerier(connection)
Expand Down

0 comments on commit 86f2ae1

Please sign in to comment.