mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-19 02:17:11 +00:00
made robust to unknown names
This commit is contained in:
@@ -263,7 +263,11 @@ def ensure_users_are_persons():
|
||||
|
||||
def who_is_this(year, possibleid):
|
||||
expo = Expedition.objects.filter(year=year)[0]
|
||||
personexpedition = GetPersonExpeditionNameLookup(expo)[possibleid.lower()]
|
||||
gpel = GetPersonExpeditionNameLookup(expo)
|
||||
if possibleid.lower() in gpel:
|
||||
personexpedition = gpel[possibleid.lower()]
|
||||
else:
|
||||
raise
|
||||
if personexpedition:
|
||||
return personexpedition.person
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user