kilianknoll / DWDForecast

Python module to query the DWD Mosmix data for irridation - and other relevant data to forecast solar generation
GNU General Public License v3.0
34 stars 4 forks source link

Function definition inside try-except block? #8

Open gerw opened 1 year ago

gerw commented 1 year ago

Why is the run() function put into an try-except block in

https://github.com/kilianknoll/DWDForecast/blob/428d44a0d54a55bd2c74f437ababbdc9bb8385ca/dwdforecast.py#L374-L375

?

Can the function definition itself raise an error?