From 9220dbf2e61ca069df735e6d21d5e03ec5b9d033 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Sun, 7 Aug 2022 22:52:29 +0300 Subject: [PATCH] bugfix --- core/views/uploads.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/views/uploads.py b/core/views/uploads.py index e46ddba..9bfbc18 100644 --- a/core/views/uploads.py +++ b/core/views/uploads.py @@ -102,7 +102,12 @@ def get_complaints(complaints, waldata, svxfiles, files, wallet, wurl): Loads the survex files names and processes all complaints ''' - w = Wallet.objects.get(walletname=wallet) + # If skipping through the wllets on the upload form, the wallet may not yet exist + try: + w = Wallet.objects.get(walletname=wallet) + except ObjectDoesNotExist: + return None, None + ticks = w.get_ticks() # Date