Merge branch 'valueerror' into 'master'

Fixes #55: Handle ValueError when fetching detailed info about a flat

Closes #55

See merge request !1
This commit is contained in:
Lucas Verney 2017-06-14 11:08:17 +02:00
commit b3ae71a8be

View File

@ -219,6 +219,10 @@ class WeboobProxy(object):
full_flat_id, full_flat_id,
str(exc) str(exc)
) )
return "{}"
except ValueError as exc:
LOGGER.error("ValueError for flat_id=%s: %s", flat_id, str(exc))
return "{}"
def fetch_flats_list(config): def fetch_flats_list(config):