mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 02:26:53 -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
|
@ -31,7 +31,7 @@ def process_torrent(input_directory, input_name, input_category, input_hash, inp
|
|||
try:
|
||||
encoded, input_directory1 = char_replace(input_directory)
|
||||
encoded, input_name1 = char_replace(input_name)
|
||||
except:
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
control_value_dict = {"input_directory": text_type(input_directory1)}
|
||||
|
@ -196,7 +196,7 @@ def process_torrent(input_directory, input_name, input_category, input_hash, inp
|
|||
try:
|
||||
core.copy_link(inputFile, target_file, core.USELINK)
|
||||
core.remove_read_only(target_file)
|
||||
except:
|
||||
except Exception:
|
||||
logger.error("Failed to link: {0} to {1}".format(inputFile, target_file))
|
||||
|
||||
input_name, output_destination = convert_to_ascii(input_name, output_destination)
|
||||
|
@ -306,7 +306,7 @@ def main(args):
|
|||
|
||||
try:
|
||||
input_directory, input_name, input_category, input_hash, input_id = core.parse_args(client_agent, args)
|
||||
except:
|
||||
except Exception:
|
||||
logger.error("There was a problem loading variables")
|
||||
return -1
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue