Hi Python/Django Developers, which two most popular exceptions.py do you use in your code?
Me:ObjectDoesNotExist
and IntegrityError
!
The former helps me bypass object instances that don’t exist in the database which clients may have sent requests for while the latter helps me manage multiple entries errors admin/clients may have added in database column/row.
Kindly state yours and why you use it. Let’s go! :D
Top comments (0)