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,7 +155,9 @@ class Wallet(models.Model):
|
||||
wname = fp.name
|
||||
wyear = fp.parent.name
|
||||
|
||||
if not int(wyear):
|
||||
try:
|
||||
y = int(wyear)
|
||||
except:
|
||||
message = f"! Subfolder detected?:\n {wyear=} (should be eg. '2023')\n {wname=} \n {self.fpath=}"
|
||||
print(message)
|
||||
wurl = self.get_url()
|
||||
|
Loading…
Reference in New Issue
Block a user