From af4e0a2ed32d9e88669e5d6432dbf494b2485fae Mon Sep 17 00:00:00 2001 From: samidh Date: Tue, 7 Jan 2025 22:17:53 -0800 Subject: [PATCH 1/2] Update config.py Fixed FEED_URI null check since in the .env sample it is set by default to empty string, not None. --- server/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/config.py b/server/config.py index d18ca63..e7f3376 100644 --- a/server/config.py +++ b/server/config.py @@ -22,6 +22,6 @@ FEED_URI = os.environ.get('FEED_URI') -if FEED_URI is None: +if not FEED_URI: raise RuntimeError('Publish your feed first (run publish_feed.py) to obtain Feed URI. ' 'Set this URI to "FEED_URI" environment variable.') From e924e6e2f9be52f15189f4599ecf1f6203fcc273 Mon Sep 17 00:00:00 2001 From: "Ilya (Marshal)" Date: Sat, 25 Jan 2025 22:47:30 +0100 Subject: [PATCH 2/2] fix other fields --- server/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/config.py b/server/config.py index e7f3376..50a51bb 100644 --- a/server/config.py +++ b/server/config.py @@ -14,10 +14,10 @@ if FLASK_RUN_FROM_CLI: logger.setLevel(logging.DEBUG) -if HOSTNAME is None: +if not HOSTNAME: raise RuntimeError('You should set "HOSTNAME" environment variable first.') -if SERVICE_DID is None: +if not SERVICE_DID: SERVICE_DID = f'did:web:{HOSTNAME}'