mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2024-11-21 23:01:52 +00:00
make more robust
This commit is contained in:
parent
581f0259e2
commit
e64cb212c1
@ -155,9 +155,11 @@ class Wallet(models.Model):
|
|||||||
wname = fp.name
|
wname = fp.name
|
||||||
wyear = fp.parent.name
|
wyear = fp.parent.name
|
||||||
|
|
||||||
if not int(wyear):
|
try:
|
||||||
message = f"! Subfolder detected?:\n {wyear=} (should be eg. '2023')\n {wname=} \n {self.fpath=}"
|
y = int(wyear)
|
||||||
print(message)
|
except:
|
||||||
|
message = f"! Subfolder detected?:\n {wyear=} (should be eg. '2023')\n {wname=} \n {self.fpath=}"
|
||||||
|
print(message)
|
||||||
wurl = self.get_url()
|
wurl = self.get_url()
|
||||||
|
|
||||||
if len(wyear) != 4 or len(wname) !=6:
|
if len(wyear) != 4 or len(wname) !=6:
|
||||||
|
Loading…
Reference in New Issue
Block a user