2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-14 19:57:22 +00:00

Convert .format() to f-strings

This commit is contained in:
Philip Sargent
2022-11-23 10:41:14 +00:00
parent ca9a3b5c7b
commit 45a640dfe9
4 changed files with 127 additions and 127 deletions

View File

@@ -400,7 +400,7 @@ def readcave(filename):
caves_xslug[slug] = cs
except Exception as ex:
# This fails to do an update! It just crashes.. to be fixed
message = " ! Cave update/create failure : %s, skipping file cave_data/%s with exception\nException: %s" % (slug, context, ex.__class__)
message = f" ! Cave update/create failure : {slug}, skipping file cave_data/{context} with exception\nException: {ex.__class__}"
DataIssue.objects.create(parser='caves', message=message)
print(message)