Fix defects found by lgtm.com

This commit is contained in:
Chocobo1 2018-11-02 23:55:18 +08:00
parent 53f9d031c9
commit d52c6230e9
No known key found for this signature in database
GPG key ID: 210D9C873253A68C
7 changed files with 19 additions and 19 deletions

View file

@ -1,4 +1,4 @@
#VERSION: 1.42
#VERSION: 1.43
# Author:
# Christophe DUMEZ (chris@qbittorrent.org)
@ -90,7 +90,7 @@ def retrieve_url(url):
charset = 'utf-8'
try:
ignore, charset = info['Content-Type'].split('charset=')
except:
except Exception:
pass
dat = dat.decode(charset, 'replace')
dat = htmlentitydecode(dat)