0001-wcs-don-t-crash-on-missing-cell-parameter-31665.patch
combo/apps/wcs/views.py | ||
---|---|---|
57 | 57 |
def post(self, request, *args, **kwargs): |
58 | 58 |
try: |
59 | 59 |
cell = TrackingCodeInputCell.objects.get(id=request.POST['cell']) |
60 |
except (ValueError, TrackingCodeInputCell.DoesNotExist): |
|
60 |
except (KeyError, ValueError, TrackingCodeInputCell.DoesNotExist):
|
|
61 | 61 |
return HttpResponseBadRequest('Invalid cell id') |
62 | 62 |
code = request.POST['code'] |
63 | 63 | |
64 |
- |