mirror of
https://github.com/spl0k/supysonic.git
synced 2024-12-23 01:16:18 +00:00
Fix deprecation warning
This commit is contained in:
parent
e8b3e7ca24
commit
012546b155
4
cli.py
4
cli.py
@ -36,7 +36,7 @@ class CLI(cmd.Cmd):
|
|||||||
try:
|
try:
|
||||||
args = self.folder_parser.parse_args(line.split())
|
args = self.folder_parser.parse_args(line.split())
|
||||||
except RuntimeError, e:
|
except RuntimeError, e:
|
||||||
print >>sys.stderr, e.message
|
print >>sys.stderr, e
|
||||||
return
|
return
|
||||||
|
|
||||||
if args.action == 'list':
|
if args.action == 'list':
|
||||||
@ -99,7 +99,7 @@ class CLI(cmd.Cmd):
|
|||||||
try:
|
try:
|
||||||
args = self.user_parser.parse_args(line.split())
|
args = self.user_parser.parse_args(line.split())
|
||||||
except RuntimeError, e:
|
except RuntimeError, e:
|
||||||
print >>sys.stderr, e.message
|
print >>sys.stderr, e
|
||||||
return
|
return
|
||||||
|
|
||||||
if args.action == 'list':
|
if args.action == 'list':
|
||||||
|
Loading…
Reference in New Issue
Block a user