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

This commit is contained in:
Benjamin Bouvier 2017-06-13 15:57:03 +02:00
parent 969c6ab0fe
commit 4beee77a02
1 changed files with 4 additions and 0 deletions

View File

@ -219,6 +219,10 @@ class WeboobProxy(object):
full_flat_id,
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):