diff --git a/core/models/wallets.py b/core/models/wallets.py index 9c9c1e8..462db6c 100644 --- a/core/models/wallets.py +++ b/core/models/wallets.py @@ -172,7 +172,7 @@ class Wallet(models.Model): try: y = int(wyear) except: - message = f"! 3 or more deep subfolder detected?:\n {fp.parent.name=}\n {fp.name=} \n {self.fpath=} {wurl=}" + message = f"! Exception: Error or 3 or more deep subfolder detected?:\n {fp.parent.name=}\n {fp.name=} \n {self.fpath=} {wurl=}" print(message) # this is a hack, work down from /surveyscans instead. To be fixed wname = fp.parent.parent.parent.name @@ -190,7 +190,7 @@ class Wallet(models.Model): print(message) if wname not in archaic_wallets: - message = f"! {jsonfile} is not a file:\n {wyear=} (should be eg. '2023')\n {wname=} (should be eg. '2023#13')\n {self.fpath=}" + message = f"! {jsonfile} (not archaic) is not a file:\n {wyear=} (should be eg. '2023')\n {wname=} (should be eg. '2023#13')\n {self.fpath=}" print(message) from troggle.core.models.troggle import DataIssue DataIssue.objects.update_or_create(parser="wallets", message=message, url=wurl)