From 4828cbad69e8a33ab22bd47672bf75cd8519fc3f Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Wed, 13 Jan 2016 05:13:41 -0500 Subject: [PATCH] Catch possible ValueError when doing opener.open(). --- earwigbot/wiki/copyvios/workers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/earwigbot/wiki/copyvios/workers.py b/earwigbot/wiki/copyvios/workers.py index 691fa6f..c66e197 100644 --- a/earwigbot/wiki/copyvios/workers.py +++ b/earwigbot/wiki/copyvios/workers.py @@ -128,7 +128,7 @@ class _CopyvioWorker(object): url = source.url.encode("utf8") try: response = self._opener.open(url, timeout=source.timeout) - except (URLError, HTTPException, socket_error): + except (URLError, HTTPException, socket_error, ValueError): return None try: