diff --git a/util/ip.py b/util/ip.py index 5634769f..9c1b72de 100644 --- a/util/ip.py +++ b/util/ip.py @@ -51,7 +51,7 @@ def _open(url, reg): debug("open: %s", url) res = urlopen( Request(url, headers={'User-Agent': 'curl/7.63.0-ddns'}), timeout=60 - ).read().decode('utf8') + ).read().decode('utf8', 'ignore') debug("response: %s", res) return compile(reg).search(res).group() except Exception as e: