mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-24 22:17:03 +01:00
Fix status code not print bug
This commit is contained in:
parent
51ff9b48b6
commit
9f154b25d6
@ -13,7 +13,7 @@ def print_shards():
|
|||||||
if r.status_code >= 200 and r.status_code < 300:
|
if r.status_code >= 200 and r.status_code < 300:
|
||||||
print("Suggested number of shards: {}".format(r.json().get("shards", 0)))
|
print("Suggested number of shards: {}".format(r.json().get("shards", 0)))
|
||||||
else:
|
else:
|
||||||
print("Status Code: " + r.status_code)
|
print("Status Code: {}".format(r.status_code))
|
||||||
print(r.text)
|
print(r.text)
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
Loading…
Reference in New Issue
Block a user