From e209a9bb375762ce1ad14e231d0719358c3336ec Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Thu, 31 Aug 2023 19:17:44 +0300 Subject: [PATCH] bugfix, name[0] may not exist --- core/views/uploads.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/views/uploads.py b/core/views/uploads.py index 58efb37..f0dedfa 100644 --- a/core/views/uploads.py +++ b/core/views/uploads.py @@ -106,7 +106,7 @@ def store_edited_entry_into_database(date, place, title, text, others, author, t team.append(author) for name in team: name = name.strip() - if name[0] != "*": # a name prefix of "*" is special, just a string. + if len(name) > 0 and name[0] != "*": # a name prefix of "*" is special, just a string. try: personyear = GetPersonExpeditionNameLookup(expedition).get(name.lower()) if not personyear: