Fix 500 err
This commit is contained in:
parent
e6db3abad6
commit
d9ac61075e
1 changed files with 2 additions and 0 deletions
|
|
@ -85,5 +85,7 @@ def ping(ip, port=25565):
|
||||||
return ServerPingResponse(json.loads(data))
|
return ServerPingResponse(json.loads(data))
|
||||||
except json.decoder.JSONDecodeError:
|
except json.decoder.JSONDecodeError:
|
||||||
return None
|
return None
|
||||||
|
except:
|
||||||
|
return None
|
||||||
finally:
|
finally:
|
||||||
sock.close()
|
sock.close()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue