~petersanchez/django-impersonate#39: 
ISE when an invalid impersonate URL is passed

Taken from Pull Request #27. When an invalid URL is passed to impersonate, a 500 error can be raised. In most use cases, the User model's PK is an integer. Passing in an invalid integer causes a 500 error to be raised. For instance,

/impersonate/anything/that/isnt/a/digit

Just just catch the error, log the error, and raise a 404.

Status
RESOLVED FIXED
Submitter
bitbucket:Peter Sanchez
Assigned to
No-one
Submitted
7 years ago
Updated
3 years ago
Labels
1.6 Bug