diff --git a/InvenTree/order/api.py b/InvenTree/order/api.py index 10173017bb..6661bd568b 100644 --- a/InvenTree/order/api.py +++ b/InvenTree/order/api.py @@ -498,7 +498,7 @@ class SOAllocationList(generics.ListCreateAPIView): kwargs['item_detail'] = str2bool(params.get('item_detail', False)) kwargs['order_detail'] = str2bool(params.get('order_detail', False)) kwargs['location_detail'] = str2bool(params.get('location_detail', False)) - except ArithmeticError: + except AttributeError: pass return self.serializer_class(*args, **kwargs)