get_updates_longpoll: Add error handling for malformed input.

(imported from commit c44758acd2b3b07bed6536f70fa50e23fb4231b6)
This commit is contained in:
Tim Abbott 2012-09-07 13:09:30 -04:00
parent 2486a68621
commit 14ab1a7044
1 changed files with 1 additions and 2 deletions

View File

@ -130,8 +130,7 @@ def update(request):
def get_updates_longpoll(request, handler):
last_received = request.POST.get('last_received')
if not last_received:
# TODO: return error?
pass
return json_error("Missing last_received argument")
user = request.user
user_profile = UserProfile.objects.get(user=user)