X-Git-Url: https://git.armaanb.net/?p=lightcards.git;a=blobdiff_plain;f=lightcards%2Fparse.py;h=f9ca3ee15afc6648ced65bd8d9436e911c19d4cf;hp=0b4ecc1b2bdd172ad5cad07ca40e0205af07296d;hb=ddc9c9451cc55b4aa8869963439a48a8f1977a3c;hpb=7fc79f3415682ddda1e33d229aaac4db2f36e012 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):