fact-project / shifthelper

So we can sleep at night.
4 stars 0 forks source link

Update setup.py #205

Closed maxnoe closed 7 years ago

dneise commented 7 years ago

Description:

It can happen that the smartfact website .data file for weather contains no information, which results in an exception in the smart_fact_crawler. This exception is now caught and nan is returned in case there is no number.

c.f. https://github.com/fact-project/smart_fact_crawler/commit/b9eecdc378d4d2947b3e4bae0ca8aed50bd38bd8

Note: The weather values from the mainpage are not even used inside the shifthelper. We use the values from the weather page. But the exception when parsing the mainpage resulted in annoying calls to the developers.