Skip to content

Commit 817b901

Browse files
authored
Merge pull request #38 from fact-project/fix_rain
Set default to empty string for rain
2 parents 64c7a24 + 7dd562a commit 817b901

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
setup(
55
name='smart_fact_crawler',
6-
version='0.6.0',
6+
version='0.6.1',
77
description='acquire data published on the smartfact web page',
88
url='https://github.com/fact-project/smart_fact_crawler.git',
99
author='Dominik Neise, Sebastian Mueller, Maximilian Nöthe',

smart_fact_crawler/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,8 @@ def main_page(url=None, timeout=None, fallback=False):
316316
table = smartfact2table(url, timeout=timeout)
317317
get = partial(get_entry, fallback=fallback)
318318

319-
humidity = get(table, 4, 1)
319+
humidity = get(table, 4, 1, default='')
320+
320321
if humidity.lower().strip() != 'rain':
321322
humidity = s2f(humidity)
322323

0 commit comments

Comments
 (0)