Remove debug prints for the next time I'm gonna find a bug that needs fixing

This commit is contained in:
Robert Miles 2021-10-13 11:20:16 +00:00
parent 057f2f7625
commit 2de6b400b4
1 changed files with 0 additions and 3 deletions

3
app.py
View File

@ -157,11 +157,8 @@ def ships(request):
def ship(request,ship=None):
global DESC_PRE_SHIPS
if ship is None: return Response(Status.BAD_REQUEST,"Bad Request")
print(ship)
ship_unquoted = urllib.parse.unquote(ship)
print(ship_unquoted)
if not os.path.isdir(os.path.join("/var/gopher",ship_unquoted)): return Response(Status.NOT_FOUND,"Not Found")
print("generator")
def __generator():
description = os.path.join("/var/gopher",ship_unquoted,".description")
if os.path.exists(description):