Catching a general exception just with
Do some tests to see the most error you may get.
You can chain the exceptions one after another.
except:
is not a good practice. What happens if the data can't be loaded. You return None or [] and you're thinking that something with your code is wrong or data is corrupted or something else.Do some tests to see the most error you may get.
You can chain the exceptions one after another.