diff --git a/server.py b/server.py index d3e4f49..5bd8c2e 100644 --- a/server.py +++ b/server.py @@ -44,7 +44,7 @@ def relay(): received = "" while True: gemresponse = gemsocket.recv(2048) - if gemresponse: + if gemresponse != "": received += gemresponse.decode() else: break @@ -85,7 +85,6 @@ def relay(): title = "gemini://" + url except: code += traceback.format_exc() - print(code) return f'\n