AV-98-fork

A fork of https://tildegit.org/solderpunk/AV-98
Log (Feed) | Files | Refs (Tags) | README | LICENSE

commit 1ba4ec5768df4f98a0f31b41e99cdf49facadcd2
parent 67d3c2ed22a16a42b0104d109c8ebd5d95979caa
Author: Solderpunk <solderpunk@sdf.org>
Date:   Sun, 11 Aug 2019 22:26:30 +0300

Updated status handling.

Diffstat:
Mav98.py | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/av98.py b/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) 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