skipe error trying to encore bytes object. #1637

This commit is contained in:
clinton-hall 2019-07-20 15:39:00 +12:00
commit 87da2d9811

View file

@ -975,12 +975,12 @@ def main(args, section=None):
try: try:
dir_name = dir_name.encode(core.SYS_ENCODING) dir_name = dir_name.encode(core.SYS_ENCODING)
except UnicodeError: except:
pass pass
input_name = os.path.basename(dir_name) input_name = os.path.basename(dir_name)
try: try:
input_name = input_name.encode(core.SYS_ENCODING) input_name = input_name.encode(core.SYS_ENCODING)
except UnicodeError: except:
pass pass
results = process(dir_name, input_name, 0, client_agent=client_agent, results = process(dir_name, input_name, 0, client_agent=client_agent,