Exception instead of
Error, Exception is bounded in the exceptions
raised by python code, Error can mean human errors and have
much larger implication, makes it harder to think.with transcation.atomic()
submit_entity_unhandled@transaction.atomic to avoid future
changes that introduces errors in error handling logicsget_or_create?Exception Handling means what are the correct business
logics when errors happenwith transaction.atomic():
task = Task.objects.create(...) # or update some properties then task.save()
submit_entity_unhandled()# if response data is needed
foo_id = third party POST or PATCH
raise_for_status()
save `foo_id` to local DB