Browse Source

Catch possible ValueError when doing opener.open().

tags/v0.3
Ben Kurtovic 9 years ago
parent
commit
4828cbad69
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      earwigbot/wiki/copyvios/workers.py

+ 1
- 1
earwigbot/wiki/copyvios/workers.py View File

@@ -128,7 +128,7 @@ class _CopyvioWorker(object):
url = source.url.encode("utf8") url = source.url.encode("utf8")
try: try:
response = self._opener.open(url, timeout=source.timeout) response = self._opener.open(url, timeout=source.timeout)
except (URLError, HTTPException, socket_error):
except (URLError, HTTPException, socket_error, ValueError):
return None return None


try: try:


Loading…
Cancel
Save