Updated status handling.
This commit is contained in:
parent
67d3c2ed22
commit
1ba4ec5768
6
av98.py
6
av98.py
|
@ -282,10 +282,14 @@ Slow internet connection? Use 'set timeout' to be more patient.""")
|
||||||
new_gi = GeminiItem(gi.host, gi.port, mime, None)
|
new_gi = GeminiItem(gi.host, gi.port, mime, None)
|
||||||
self._go_to_gi(new_gi)
|
self._go_to_gi(new_gi)
|
||||||
return
|
return
|
||||||
# Not found
|
# Error
|
||||||
elif status.startswith("4") or status.startswith("5"):
|
elif status.startswith("4") or status.startswith("5"):
|
||||||
print("Error: %s" % mime)
|
print("Error: %s" % mime)
|
||||||
return
|
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
|
# If we're still here, this is a success and there's a response body
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue