Skip to content

Commit

Permalink
Also handle TypeError
Browse files Browse the repository at this point in the history
  • Loading branch information
SchrodingersGat committed Aug 14, 2023
1 parent e709b45 commit 1140ab7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion InvenTree/part/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def get_field_selection(self):

try:
data = row['data'][col_ids[idx]]['cell']
except IndexError:
except (IndexError, TypeError):
continue

if idx in self.file_manager.OPTIONAL_MATCH_HEADERS:
Expand Down

0 comments on commit 1140ab7

Please sign in to comment.