forked from expo/troggle
better error handling
This commit is contained in:
@@ -211,9 +211,14 @@ def scanupload(request, path=None):
|
||||
wallet = "2022#01" # improve this later
|
||||
|
||||
year = wallet[:4]
|
||||
if int(year) <= 1998:
|
||||
#print(f'! - FORM scanupload - start {wallet} REDIRECT TO OLDWALLET')
|
||||
try:
|
||||
if int(year) <= 1998:
|
||||
#print(f'! - FORM scanupload - start {wallet} REDIRECT TO OLDWALLET')
|
||||
return(oldwallet(request, path))
|
||||
except:
|
||||
# if nonumeric wallet name for example
|
||||
return(oldwallet(request, path))
|
||||
|
||||
|
||||
if str(wallet).lower().endswith('indexpages'):
|
||||
# print(f'! - FORM scanupload - start {wallet} REDIRECT TO OLDWALLET')
|
||||
|
||||
Reference in New Issue
Block a user