From 28f68c6ef20e95119fefc1ee7f51d5733c23527d Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Thu, 28 Apr 2011 10:40:16 +0200 Subject: [PATCH] Cosmetics --- svtplay-dl | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/svtplay-dl b/svtplay-dl index d601885..e765754 100755 --- a/svtplay-dl +++ b/svtplay-dl @@ -25,7 +25,8 @@ def calc_data(byte, total): def getrtmp(url, output, live): """ Get the stream from RTMP """ - other, other2 = "" + other ="" + other2 = "" if url[4:5] == "e": # For encrypted streams other = "-l 2" @@ -86,10 +87,7 @@ def main(): else: try: stream = streams[int(quality)] - except ValueError: - print "Err: Cant find that quality. try 2400 (720p), 1400 (high), 850 (mid) or 320 (low)" - sys.exit(2) - except KeyError: + except (ValueError, KeyError): print "Err: Cant find that quality. try 2400 (720p), 1400 (high), 850 (mid) or 320 (low)" sys.exit(2) else: