scribd_view can throw 500 instead of 404

Issue #24 resolved
Brian Kerr
repo owner created an issue

to reproduce: construct URL to nonexistent entry / file combination

example: http://a2docs.org/doc/5/view/1/

fix: line 219, don't use Entry.objects.get(id=eid) without handling the DoesNotExist (or just use http://docs.djangoproject.com/en/dev/topics/http/shortcuts/#get-object-or-404 instead)

Comments (1)

  1. Log in to comment