SyntaxFix
Write A Post
Hire A Developer
Questions
The solution that i believe is best and optimized is:
try: #your code except "ModelName".DoesNotExist: #your code