DEV Community

Ejikeme Blaise
Ejikeme Blaise

Posted on

Error Handling in Django/Python

Hi Python/Django Developers, which two most popular exceptions.py do you use in your code?

Me:ObjectDoesNotExistand 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

python #sql #django #RestAPi

Top comments (0)