Brown-University-Library / ttwr

This is the django app that runs the Theater That Was Rome project website.
1 stars 5 forks source link

500 Error: http://library.brown.edu/projects/rome/books/383007/383068/ #199

Closed jrhoads closed 7 years ago

jrhoads commented 7 years ago

500 Error accessing this URL. http://library.brown.edu/projects/rome/books/383007/383068/ Here's a stacktrace. Internal Server Error: /projects/rome/books/383007/383068/ Traceback (most recent call last): File "../django/core/handlers/base.py", line 132, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "../rome_app/views.py", line 206, in page_detail context['annotations'] = sorted(context['annotations'], key=lambda annote: annotation_order(annote)) File "../rome_app/views.py", line 206, in context['annotations'] = sorted(context['annotations'], key=lambda annote: annotation_order(annote)) File "../rome_app/views.py", line 26, in annotation_order retval = re.sub("[^0-9]", "", first_word(s['orig_title'])) KeyError: 'orig_title'

crotger commented 7 years ago

That's frustrating, didn't we just fix a similar error? I'll look at this in about 45 minutes.

emylonas commented 7 years ago

do we need to do a search for this case?

crotger commented 7 years ago

pushed a fix to a branch and opened a pr #200

bcail commented 7 years ago

fix has been deployed to production.