From 4beee77a02a9a8df98a8aaf66bd5f0cc2f2f4efc Mon Sep 17 00:00:00 2001 From: Benjamin Bouvier Date: Tue, 13 Jun 2017 15:57:03 +0200 Subject: [PATCH] Fixes #55: Handle ValueError when fetching detailed info about a flat; --- flatisfy/fetch.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/flatisfy/fetch.py b/flatisfy/fetch.py index 02bf8b5..cbd9f8a 100644 --- a/flatisfy/fetch.py +++ b/flatisfy/fetch.py @@ -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):