Skip to content

Commit

Permalink
don't raise error
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Krieger committed Dec 10, 2008
1 parent 746087d commit 63ba659
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions greetings/views.py
Expand Up @@ -48,7 +48,7 @@ def make_hash_list_from_objects(objects, field):

def all_cards_for_id(request, person_id, since_id=0):
json_list = list()
for card in Card.objects.filter(to_people=person_id, pk__gt=since_id):
for card in Card.objects.filter(to_people=person_id, pk__gt=since_id).order_by("-id"):
json_list.append(json_from_card(card))
return HttpResponse( simplejson.dumps(json_list) )

Expand Down Expand Up @@ -226,7 +226,6 @@ def make_greeting(request):
json_response['error'] = "missing people ids"

except Exception, e:
raise e
json_response['success'] = False
json_response['error'] = str(e)
return HttpResponse( simplejson.dumps(json_response) )
Expand Down

0 comments on commit 63ba659

Please sign in to comment.