mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 02:26:53 -07:00
Python 3: Convert except ExceptClass, Target: to except ExceptClass as Target:
This commit is contained in:
parent
5903538ae5
commit
ec71e7806d
7 changed files with 28 additions and 28 deletions
|
@ -40,7 +40,7 @@ class DelugeClient(object):
|
|||
from xdg.BaseDirectory import save_config_path
|
||||
try:
|
||||
auth_file = os.path.join(save_config_path("deluge"), "auth")
|
||||
except OSError, e:
|
||||
except OSError:
|
||||
return username, password
|
||||
|
||||
if os.path.exists(auth_file):
|
||||
|
@ -51,7 +51,7 @@ class DelugeClient(object):
|
|||
line = line.strip()
|
||||
try:
|
||||
lsplit = line.split(":")
|
||||
except Exception, e:
|
||||
except Exception:
|
||||
continue
|
||||
|
||||
if len(lsplit) == 2:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue