mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
Fix defects found by lgtm.com
This commit is contained in:
parent
53f9d031c9
commit
d52c6230e9
7 changed files with 19 additions and 19 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue