push
github
[fix] Prevent HTTP 500 on missing device credentials #250 When device credentials are deleted after a firmware image is assigned, saving the device form crashes with an unhandled `DoesNotExist` exception. This change catches `ObjectDoesNotExist` and raises a `ValidationError` instead, providing a user-friendly error message. Several related edge cases are handled as well. Closes #250 (cherry picked from commit b0cc4d488) (adaptations were made for this version branch)
1675 of 1718 relevant lines covered (97.5%)
12.67 hits per line