diff --git a/silkaj/wot.py b/silkaj/wot.py index 0a54650137467a7357a29a89a1fd7f9f21fc5a2f..fc29d998c1fe17e665505a7d5c721a5287d5b6c3 100644 --- a/silkaj/wot.py +++ b/silkaj/wot.py @@ -16,6 +16,7 @@ along with Silkaj. If not, see <https://www.gnu.org/licenses/>. """ import click +import urllib from time import time from tabulate import tabulate from collections import OrderedDict @@ -251,8 +252,8 @@ def wot_lookup(identifier): return results["results"] except DuniterError as e: message_exit(e.message) - except ValueError as e: - pass + except urllib.error.HTTPError as e: + message_exit(e) def identities_from_pubkeys(pubkeys, uids):