{"action":"opened","issue":{"url":"https://api.github.com/repos/Princeton-CDH/derrida-django/issues/214","repository_url":"https://api.github.com/repos/Princeton-CDH/derrida-django","labels_url":"https://api.github.com/repos/Princeton-CDH/derrida-django/issues/214/labels{/name}","comments_url":"https://api.github.com/repos/Princeton-CDH/derrida-django/issues/214/comments","events_url":"https://api.github.com/repos/Princeton-CDH/derrida-django/issues/214/events","html_url":"https://github.com/Princeton-CDH/derrida-django/issues/214","id":321678150,"number":214,"title":"500 error on image thumbnail request for non-digitized volume","user":{"login":"rlskoeser","id":691231,"avatar_url":"https://avatars2.githubusercontent.com/u/691231?v=4","gravatar_id":"","url":"https://api.github.com/users/rlskoeser","html_url":"https://github.com/rlskoeser","followers_url":"https://api.github.com/users/rlskoeser/followers","following_url":"https://api.github.com/users/rlskoeser/following{/other_user}","gists_url":"https://api.github.com/users/rlskoeser/gists{/gist_id}","starred_url":"https://api.github.com/users/rlskoeser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rlskoeser/subscriptions","organizations_url":"https://api.github.com/users/rlskoeser/orgs","repos_url":"https://api.github.com/users/rlskoeser/repos","events_url":"https://api.github.com/users/rlskoeser/events{/privacy}","received_events_url":"https://api.github.com/users/rlskoeser/received_events","type":"User","site_admin":false},"labels":[{"id":548995174,"url":"https://api.github.com/repos/Princeton-CDH/derrida-django/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-09T18:30:45Z","updated_at":"2018-05-09T18:30:45Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Need to determine why this is getting called (shouldn't be requested in the template for non-digitized volumes), but also make it so it doesn't error.  Seems to only be happening for this volume, as far as I've seen.\r\n\r\nAttributeError at /library/plato-le-banquet-phedre-1964/gallery/images/default/smthumb/\r\n'NoneType' object has no attribute 'thumbnail'\r\n\r\nTraceback:  \r\n\r\nFile \"/var/www/derridas-margins/env/lib/python3.5/site-packages/django/core/handlers/exception.py\" in inner\r\n  41.             response = get_response(request)\r\n\r\nFile \"/var/www/derridas-margins/env/lib/python3.5/site-packages/django/core/handlers/base.py\" in _get_response\r\n  178.             response = middleware_method(request, callback, callback_args, callback_kwargs)\r\n\r\nFile \"/var/www/derridas-margins/env/lib/python3.5/site-packages/mezzanine/pages/middleware.py\" in process_view\r\n  99.                 return view_func(request, *view_args, **view_kwargs)\r\n\r\nFile \"/var/www/derridas-margins/env/lib/python3.5/site-packages/django/views/generic/base.py\" in view\r\n  68.             return self.dispatch(request, *args, **kwargs)\r\n\r\nFile \"/var/www/derridas-margins/env/lib/python3.5/site-packages/django/views/generic/base.py\" in dispatch\r\n  88.         return handler(request, *args, **kwargs)\r\n\r\nFile \"/var/www/derridas-margins/derrida/books/views.py\" in get\r\n  594.         url = self.get_proxy_url(*args, **kwargs)\r\n\r\nFile \"/var/www/derridas-margins/derrida/books/views.py\" in get_proxy_url\r\n  708.             canvas = instance.digital_edition.thumbnail\r\n\r\nException Type: AttributeError at /library/plato-le-banquet-phedre-1964/gallery/images/default/smthumb/\r\nException Value: 'NoneType' object has no attribute 'thumbnail'"}}
{"actor":{"display_login":"rlskoeser"}}