Updated status handling.

This commit is contained in:
Solderpunk 2019-08-11 22:26:30 +03:00
parent 67d3c2ed22
commit 1ba4ec5768
1 changed files with 5 additions and 1 deletions

View File

@ -282,10 +282,14 @@ Slow internet connection? Use 'set timeout' to be more patient.""")
new_gi = GeminiItem(gi.host, gi.port, mime, None)
self._go_to_gi(new_gi)
return
# Not found
# Error
elif status.startswith("4") or status.startswith("5"):
print("Error: %s" % mime)
return
# Client cert
elif status.startswith("6"):
print("Client certificates not supported.")
return
# If we're still here, this is a success and there's a response body