What is the version of the following sentence with correct punctuation?

In the case of passenger delay the air carrier is liable for damage unless it took all reasonable measures to avoid the damage or it was impossible to take such measures
In the case of passenger delay, the air carrier is liable for damage unless it took all reasonable measures to avoid the damage or it was impossible to take such measures.