This commit is contained in:
Philip Sargent 2022-08-20 09:45:28 +03:00
parent e195497829
commit a30a2b9ef9

View File

@ -274,10 +274,10 @@ def scanupload(request, path=None):
comment = f"on dev machine '{socket.gethostname()}' " comment = f"on dev machine '{socket.gethostname()}' "
else: else:
comment = "" comment = ""
if waldata["cave"]: if "cave" in waldata:
label = waldata["cave"] label = waldata["cave"]
else: else:
if waldata["name"]: if "name" in waldata:
label = waldata["name"] label = waldata["name"]
else: else:
label = "" label = ""