diff options
Diffstat (limited to 'src/blog_node5_net.py')
| -rw-r--r-- | src/blog_node5_net.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/blog_node5_net.py b/src/blog_node5_net.py index 7da959c..c9e4e1d 100644 --- a/src/blog_node5_net.py +++ b/src/blog_node5_net.py @@ -51,9 +51,7 @@ stream_handler.setFormatter(CustomFormatter()) logger.root.addHandler(stream_handler) logger.info(f"Debug: {'en' if debug else 'dis'}abled") -content_root_path = os.environ.get("CONTENT_ROOT_PATH") -if not content_root_path: - sys.exit("ERROR: required environment variable CONTENT_ROOT_PATH is not set") +content_root_path = os.environ["CONTENT_ROOT_PATH"] if "CONTENT_ROOT_PATH" in os.environ else './blog.node5.net/' article_generator = article.ArticleGenerator(os.path.join(content_root_path, 'articles')) |
