mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 18:47:09 -07:00
Fix PEP8 for bare exceptions
This commit is contained in:
parent
52c6096b6a
commit
018ded07d6
13 changed files with 126 additions and 126 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue