OCHA-DAP / pa-COVID-model-parameterization

Repository for the parameterization of the subnational SEIR model
0 stars 0 forks source link

adding try except in all scripts #97

Closed milanoleonardo closed 4 years ago

milanoleonardo commented 4 years ago

Hi Tinka, can you please have a look? It's probably not the most elegant way of doing it but it seems to work. The output of the loggin.error function would be in red and would be easier to spot

Tinkaa commented 4 years ago

Looks good. Best practice would be to catch the specific errors you might expect, (e.g. except KeyError) but for current purposes this should be fine.