mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-16 14:49:25 +00:00
cope with bad wallet name
This commit is contained in:
@@ -676,12 +676,15 @@ def scanupload(request, path=None):
|
||||
checked[f] = "checked"
|
||||
|
||||
survexsize = str(min(len(str(waldata["survex file"])), 46))
|
||||
|
||||
thiswallet = Wallet.objects.get(walletname=wallet)
|
||||
caveifywallet(thiswallet)
|
||||
thiswallet.ticks = thiswallet.get_ticks() # the complaints in colour form
|
||||
#fixsurvextick(thiswallet, thiswallet.ticks)
|
||||
print(thiswallet)
|
||||
|
||||
try:
|
||||
thiswallet = Wallet.objects.get(walletname=wallet)
|
||||
caveifywallet(thiswallet)
|
||||
thiswallet.ticks = thiswallet.get_ticks() # the complaints in colour form
|
||||
#fixsurvextick(thiswallet, thiswallet.ticks)
|
||||
print(thiswallet)
|
||||
except:
|
||||
thiswallet = None
|
||||
context = {'year': year, 'prev': prev, 'next': next, 'prevy': prevy, 'nexty': nexty,
|
||||
'files': files, 'dirs': dirs, 'waldata': waldata, 'svxfiles': svxfiles,
|
||||
'checked': checked,
|
||||
|
||||
Reference in New Issue
Block a user