mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-17 11:37:08 +00:00
expand weird error due to unexpected file
This commit is contained in:
@@ -172,7 +172,7 @@ class Wallet(models.Model):
|
|||||||
try:
|
try:
|
||||||
y = int(wyear)
|
y = int(wyear)
|
||||||
except:
|
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)
|
print(message)
|
||||||
# this is a hack, work down from /surveyscans instead. To be fixed
|
# this is a hack, work down from /surveyscans instead. To be fixed
|
||||||
wname = fp.parent.parent.parent.name
|
wname = fp.parent.parent.parent.name
|
||||||
@@ -190,7 +190,7 @@ class Wallet(models.Model):
|
|||||||
print(message)
|
print(message)
|
||||||
|
|
||||||
if wname not in archaic_wallets:
|
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)
|
print(message)
|
||||||
from troggle.core.models.troggle import DataIssue
|
from troggle.core.models.troggle import DataIssue
|
||||||
DataIssue.objects.update_or_create(parser="wallets", message=message, url=wurl)
|
DataIssue.objects.update_or_create(parser="wallets", message=message, url=wurl)
|
||||||
|
|||||||
Reference in New Issue
Block a user