From 31c815eeb02cce67c5c5586c7a2573c9a3c93eff Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Mon, 24 Jul 2023 17:33:39 +0300 Subject: [PATCH] bugfix in error message --- parsers/caves.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parsers/caves.py b/parsers/caves.py index 668ac40..f8b39e9 100644 --- a/parsers/caves.py +++ b/parsers/caves.py @@ -483,7 +483,7 @@ def read_cave(filename, cave=None): cave=cave, entrance_letter=letter, entrance=entrance ) 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/") print(message) def reload_entrances():