Fix PEP8 for bare exceptions

This commit is contained in:
Labrys of Knossos 2018-12-26 11:29:38 -05:00 committed by Lizband
commit 018ded07d6
13 changed files with 126 additions and 126 deletions

View file

@ -147,7 +147,7 @@ def extract(file_path, output_destination):
break
else:
continue
except:
except Exception:
core.logger.error("EXTRACTOR: Extraction failed for {file}. "
"Could not call command {cmd}".format
(file=file_path, cmd=cmd))
@ -165,13 +165,13 @@ def extract(file_path, output_destination):
if not os.path.join(dir, subdir) in orig_files:
try:
os.chmod(os.path.join(dir, subdir), perms)
except:
except Exception:
pass
for file in files:
if not os.path.join(dir, file) in orig_files:
try:
shutil.copymode(file_path, os.path.join(dir, file))
except:
except Exception:
pass
return True
else: