summaryrefslogtreecommitdiffstats
path: root/core/views/uploads.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2023-08-31 19:17:44 +0300
committerPhilip Sargent <philip.sargent@gmail.com>2023-08-31 19:17:44 +0300
commite209a9bb375762ce1ad14e231d0719358c3336ec (patch)
treea617c27d8dc8612f41b3494120f782bdb8ce56d8 /core/views/uploads.py
parent2dc8faee3589b43edfa3eb4aea04ab7cbb068a03 (diff)
downloadtroggle-e209a9bb375762ce1ad14e231d0719358c3336ec.tar.gz
troggle-e209a9bb375762ce1ad14e231d0719358c3336ec.tar.bz2
troggle-e209a9bb375762ce1ad14e231d0719358c3336ec.zip
bugfix, name[0] may not exist
Diffstat (limited to 'core/views/uploads.py')
-rw-r--r--core/views/uploads.py2
1 files changed, 1 insertions, 1 deletions
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: