From: Armaan Bhojwani Date: Tue, 9 Feb 2021 01:48:34 +0000 (-0500) Subject: Compress error exit X-Git-Tag: v0.6.0~44 X-Git-Url: https://git.armaanb.net/?p=lightcards.git;a=commitdiff_plain;h=ddc9c9451cc55b4aa8869963439a48a8f1977a3c Compress error exit --- diff --git a/lightcards/parse.py b/lightcards/parse.py index 0b4ecc1..f9ca3ee 100644 --- a/lightcards/parse.py +++ b/lightcards/parse.py @@ -13,8 +13,7 @@ def md2html(file): try: return markdown.markdown(open(file, "r").read(), extensions=["tables"]) except FileNotFoundError: - print(f'lightcards: "{file}": No such file or directory') - exit(1) + sys.exit(f'lightcards: "{file}": No such file or directory') def parse_html(html):