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.
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.
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 andnan
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.