Commits

Ian George  committed 16613ba

Trying to raise an exception that doesn't exist. Clever

  • Participants
  • Parent commits ed4f16b

Comments (0)

Files changed (1)

File quiet/shop/session.py

                 item_content_type=c_type
                 )
         except BasketItem.DoesNotExist:
-            raise ItemDoesNotExist
+            return
         else:
             item.delete()
         signal_basket_remove_post.send(sender=self.__class__, basket_id=self.basket_id, content_type=c_type.id, content_id=object_to_remove.id)
                 item_content_type=c_type
                 )
         except BasketItem.DoesNotExist:
-            raise ItemDoesNotExist
+            return
         else:
             item.price = object_to_update.price
             item.quantity = quantity