Fixes issue #63. Thanks, Kirim.

Entering gibberish in the 'Ticket Number' field when viewing a ticket on
the public form threw up a 500 error.
This commit is contained in:
Ross Poulton 2009-06-27 01:00:55 +00:00
parent 762f48a59e
commit 93723e9e7a

View File

@ -70,8 +70,8 @@ def view_ticket(request):
try:
t = Ticket.objects.get(id=ticket_id, queue__slug__iexact=queue, submitter_email__iexact=email)
except Ticket.DoesNotExist:
t = False;
except:
t = False
error_message = _('Invalid ticket ID or e-mail address. Please try again.')
if t: