diff options
Diffstat (limited to 'core/views/uploads.py')
-rw-r--r-- | core/views/uploads.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/core/views/uploads.py b/core/views/uploads.py index 091534a..b275d2a 100644 --- a/core/views/uploads.py +++ b/core/views/uploads.py @@ -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') |