From 1ba4ec5768df4f98a0f31b41e99cdf49facadcd2 Mon Sep 17 00:00:00 2001 From: Solderpunk Date: Sun, 11 Aug 2019 22:26:30 +0300 Subject: [PATCH] Updated status handling. --- av98.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/av98.py b/av98.py index 94ad753..aa21650 100755 --- 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