Skip to content

Commit

Permalink
Fix LookupError: unknown encoding: idna
Browse files Browse the repository at this point in the history
  • Loading branch information
az0 committed Jan 26, 2020
1 parent ccf3b3a commit ab76ebd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bleachbit/Update.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ def check_updates(check_beta, check_winapp2, append_text, cb_success):
opener = build_opener()
socket.setdefaulttimeout(bleachbit.socket_timeout)
opener.addheaders = [('User-Agent', user_agent())]
import encodings.idna # https://github.com/bleachbit/bleachbit/issues/760
try:
handle = opener.open(bleachbit.update_check_url)
except URLError as e:
Expand Down

0 comments on commit ab76ebd

Please sign in to comment.