2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-14 05:55:06 +00:00

fix for missing scotsmen

This commit is contained in:
Philip Sargent
2021-04-20 23:14:10 +01:00
parent b4ba3c40eb
commit bad5484d12
2 changed files with 2 additions and 2 deletions

View File

@@ -119,7 +119,7 @@ def person(request, first_name='', last_name='', ):
this_person = Person.objects.get(first_name = first_name, last_name = last_name)
return render(request,'person.html', {'person': this_person, })
except:
message = f'Person not found - possibly Scottish? (We have a name parser issue with Mc, Mac etc.)'
message = f'Person not found \'{first_name}-{last_name}\' - possibly Scottish? (We have a name parser issue with Mc, Mac etc.)'
return render(request, 'errors/generic.html', {'message': message})