mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2024-12-13 18:31:10 +01:00
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:
parent
762f48a59e
commit
93723e9e7a
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user