From 7a4c46ed562d59d2f04c37d1184bdcd36d737f1d Mon Sep 17 00:00:00 2001 From: "Ira W. Snyder" Date: Wed, 27 Dec 2006 21:12:26 -0800 Subject: [PATCH] [RARSLAVE] Fix exception syntax Fixes a stupid error in syntax made in the last commit. Signed-off-by: Ira W. Snyder --- rarslave.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.34.1