From: Tom S Date: Thu, 22 Nov 2012 16:46:22 +0000 (+0000) Subject: omitted to catch KeyError X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=9c922fabfd2420cfd391e1c7c4cb31b8f721c547;p=django-jqchat.git omitted to catch KeyError --- diff --git a/jqchat/views.py b/jqchat/views.py index 7430d1c..3f417ed 100644 --- a/jqchat/views.py +++ b/jqchat/views.py @@ -83,7 +83,7 @@ class Ajax(object): self.request = request try: self.request_time = float(self.request.REQUEST['time']) - except (ValueError, TypeError): + except (ValueError, TypeError, KeyError): return HttpResponseBadRequest("What's the time?") self.ThisRoom = Room.objects.get(id=id) NewDescription = None