Use sys.exit()

This commit is contained in:
Rupus Reinefjord 2022-04-10 12:20:38 +02:00
parent a822d1cb5e
commit 3ff16caf3e

View file

@ -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: