mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-15 18:47:18 +00:00
expand weird error due to unexpected file
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user