bugfix in error message

This commit is contained in:
Philip Sargent 2023-07-24 17:33:39 +03:00
parent c31615b1ff
commit 31c815eeb0

View File

@ -483,7 +483,7 @@ def read_cave(filename, cave=None):
cave=cave, entrance_letter=letter, entrance=entrance cave=cave, entrance_letter=letter, entrance=entrance
) )
except: except:
message = f' ! Entrance setting failure, slug:"{slug}" #entrances:{len(entrances)} {entrance} letter:"{letter}" cave:"{cave}" filename:"cave_data/{filename}"' message = f' ! Entrance setting failure, slug:"{slug}" #entrances:{len(entrances)} {e} letter:"{letter}" cave:"{cave}" filename:"cave_data/{filename}"'
DataIssue.objects.create(parser="entrances", message=message, url=f"{cave.url}_edit/") DataIssue.objects.create(parser="entrances", message=message, url=f"{cave.url}_edit/")
print(message) print(message)
def reload_entrances(): def reload_entrances():