From bada35304072f4a62dfe688db0b1e4b6d7be62a5 Mon Sep 17 00:00:00 2001 From: "Jannis M. Hoffmann" Date: Thu, 7 Dec 2023 00:00:11 +0100 Subject: move to build tool hatch don't require proxy field in config --- src/jwebmail/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/jwebmail') diff --git a/src/jwebmail/__init__.py b/src/jwebmail/__init__.py index aa4d6a7..b7fd03f 100644 --- a/src/jwebmail/__init__.py +++ b/src/jwebmail/__init__.py @@ -32,7 +32,7 @@ else: from toml import load as toml_load toml_read_file = dict(load=toml_load, text=True) -__version__ = "2.0.0" +__version__ = "2.0.0.dev2" def validate_config(app): @@ -62,7 +62,7 @@ def create_app(): else: app.config.from_file(environ["JWEBMAIL_CONFIG"], **toml_read_file) - if app.config["JWEBMAIL"]["PROXY"]: + if app.config["JWEBMAIL"].get("PROXY"): app.wsgi_app = ProxyFix(app.wsgi_app, x_for=1, x_proto=1, x_host=1, x_prefix=1) validate_config(app) -- cgit v1.2.3