Hubert-Dudek
Databricks MVP

I would use try / except block to handle the logic.


My blog: https://databrickster.medium.com/