Exception Handling

What is Exception handling

When to Handle Exception

How To Handle Exception

Reminder

Example: Curo

task = Task.objects.create(...) # or update some properties then task.save()
submit_entity_unhandled() # or submit_entity if errors doesn't matter?

Example: Third Party API Call

# if response data is needed
foo_id = third party POST or PATCH
raise_for_status()
save `foo_id` to local DB