diff --git a/server.py b/server.py
index 0bc77f9..d111753 100644
--- a/server.py
+++ b/server.py
@@ -25,7 +25,7 @@ def relay():
return redirect("/")
code = "
Something went wrong...
\n"
title = "Something went wrong..."
- print("GET " + url + "?" + queries)
+ print("GET " + url if url else "" + "?" + queries if queries else "")
try:
gsocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
fulladdr = "gemini://" + url + ("?" + queries if queries != None else "")