30350n / inventree_part_import

CLI to import parts from suppliers like DigiKey, LCSC, Mouser, etc. to InvenTree
MIT License
24 stars 8 forks source link

Fix crash when importing parts and parameters don't validate #36 #37

Closed cmidgley closed 2 months ago

cmidgley commented 2 months ago

Fix for #36 (crash when parameter validation fails) by passing name into the update method.

30350n commented 2 months ago

Thanks!

I took a quick look over my code again and the name is available via parameter.template_detail["name"], so I prefer using that over passing through another argument just for the error message. Could you quickly confirm that this still fixes the issue?

30350n commented 2 months ago

(Merged based on your comment in #36, thanks again!)