1
0
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:
spl0k 2013-09-07 15:11:13 +02:00
parent e8b3e7ca24
commit 012546b155

4
cli.py
View File

@ -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':