From: Ira W. Snyder Date: Thu, 28 Dec 2006 05:12:26 +0000 (-0800) Subject: [RARSLAVE] Fix exception syntax X-Git-Tag: v2.0.0~26 X-Git-Url: https://www.irasnyder.com/gitweb/?a=commitdiff_plain;h=7a4c46ed562d59d2f04c37d1184bdcd36d737f1d;p=rarslave2.git [RARSLAVE] Fix exception syntax Fixes a stupid error in syntax made in the last commit. Signed-off-by: Ira W. Snyder --- diff --git a/rarslave.py b/rarslave.py index f02f356..27db583 100644 --- a/rarslave.py +++ b/rarslave.py @@ -210,7 +210,7 @@ def find_likely_files (dir, p2file): name_matches = [f for f in os.listdir (dir) if regex.match (f)] try: parsed_matches = Par2Parser.get_protected_files (dir, p2file) - except EnvironmentError, OSError, OverflowError: + except (EnvironmentError, OSError, OverflowError): parsed_matches = [] logger.addMessage ('Bad par2 file: %s' % p2file, RarslaveLogger.MessageType.Fatal) @@ -283,7 +283,7 @@ def find_extraction_heads (dir, files): try: prot_files = Par2Parser.get_protected_files (dir, f) done = True - except EnvironmentError, OverflowError, OSError: + except (EnvironmentError, OverflowError, OSError): logger.addMessage ('Error parsing PAR2 file: %s', f) continue