X-Git-Url: https://www.irasnyder.com/gitweb/?p=rarslave2.git;a=blobdiff_plain;f=rarslave.py;h=f02f356ef73bc7cee64679df32bb5685a32bd1d8;hp=ce6e6ec5e492311c41392d43753924fd6f2b68da;hb=177e50d8e9bd3f89a5ef83418f2e21f30f909b5d;hpb=942307c46d276488cb42bcf4d2244979b14cbca1 diff --git a/rarslave.py b/rarslave.py index ce6e6ec..f02f356 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: + 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: + except EnvironmentError, OverflowError, OSError: logger.addMessage ('Error parsing PAR2 file: %s', f) continue