From 1c72f127d3f4394d9024308d189c19f3410f9f51 Mon Sep 17 00:00:00 2001 From: Alvie Rahman Date: Tue, 24 Aug 2021 14:39:30 +0100 Subject: [PATCH] Fix syntax error --- notes2web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notes2web.py b/notes2web.py index 445eddc..3494806 100755 --- a/notes2web.py +++ b/notes2web.py @@ -134,7 +134,7 @@ def main(args): with open(args.extra_index_content) as fp: EXTRA_INDEX_CONTENT = fp.read() - if args.output_dir.is_file() + if args.output_dir.is_file(): print(f"Output directory ({args.output_dir}) cannot be a file.") args.output_dir.mkdir(parents=True, exist_ok=True)