Use sys.exit()
This commit is contained in:
parent
a822d1cb5e
commit
3ff16caf3e
1 changed files with 1 additions and 1 deletions
2
pass2csv
2
pass2csv
|
@ -103,7 +103,7 @@ def main(store_path, grouping_base, outfile, gpgbinary, use_agent, encodings,
|
|||
else:
|
||||
err = "No such file or directory: {}".format(path)
|
||||
logging.error(err)
|
||||
exit(1)
|
||||
sys.exit(1)
|
||||
for file in files:
|
||||
logging.info("Processing %s", file)
|
||||
with open(file, 'rb') as fp:
|
||||
|
|
Loading…
Reference in a new issue