Skip to content

Commit

Permalink
Check for null part instance (#6011)
Browse files Browse the repository at this point in the history
- Error reported via sentry.io
  • Loading branch information
SchrodingersGat committed Nov 30, 2023
1 parent ae4c424 commit a7728d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion InvenTree/order/views.py
Expand Up @@ -342,8 +342,9 @@ def get_part(self, id=False):
else:
return None

if id:
if part and id:
return part.id

return part

def get_so(self, pk=False):
Expand Down

0 comments on commit a7728d3

Please sign in to comment.