diff --git a/core/models/wallets.py b/core/models/wallets.py index 79e022d..5c8202c 100644 --- a/core/models/wallets.py +++ b/core/models/wallets.py @@ -202,6 +202,7 @@ class Wallet(models.Model): except: message = f"! {str(self.walletname)} Failed to load {jsonfile} JSON file" print(message) + from troggle.core.models.troggle import DataIssue DataIssue.objects.update_or_create(parser="wallets", message=message, url=wurl) return None @@ -233,6 +234,7 @@ class Wallet(models.Model): sx = sx + ".svx" if not (Path(settings.SURVEX_DATA) / sx).is_file(): message=f"{self} Survex file {sx} was not found in LOSER repo" + from troggle.core.models.troggle import DataIssue DataIssue.objects.update_or_create(parser="wallets", message=message, url=wurl) # check using field on the cave whether it has been renamed...