Caught a few errors.
This commit is contained in:
parent
08a5683906
commit
6e2bdb0c8d
16
ASCIIsite.py
16
ASCIIsite.py
|
@ -45,11 +45,19 @@ def parse_arguments():
|
||||||
logging.info(f'outputting to {outFile.resolve()}')
|
logging.info(f'outputting to {outFile.resolve()}')
|
||||||
logging.debug(f'compress is {compress}')
|
logging.debug(f'compress is {compress}')
|
||||||
|
|
||||||
with open(args.exclude_file, 'r') as file:
|
try:
|
||||||
exclude=[glob.strip() for glob in file]
|
with open(args.exclude_file, 'r') as file:
|
||||||
|
exclude=[glob.strip() for glob in file]
|
||||||
|
|
||||||
if args.exclude != None:
|
if args.exclude != None:
|
||||||
exclude.extend(args.exclude)
|
exclude.extend(args.exclude)
|
||||||
|
except Exception as e:
|
||||||
|
print(str(e))
|
||||||
|
exit()
|
||||||
|
|
||||||
|
if args.inputDir.resolve().exists():
|
||||||
|
print(f'Inputdir {args.inputDir.resolve()} does not exist!')
|
||||||
|
exit()
|
||||||
|
|
||||||
return args.inputDir.resolve(), outFile, compress, exclude
|
return args.inputDir.resolve(), outFile, compress, exclude
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue