mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Fix error response in barcode API
This commit is contained in:
parent
0461661139
commit
5a978f07a5
@ -83,7 +83,7 @@ class InvenTreeBarcodePlugin(BarcodePlugin):
|
||||
item = StockItem.objects.get(pk=pk)
|
||||
return item
|
||||
except (ValueError, StockItem.DoesNotExist): # pragma: no cover
|
||||
raise ValidationError({k, "Stock item does not exist"})
|
||||
raise ValidationError({k: "Stock item does not exist"})
|
||||
|
||||
return None
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user