From b30465c14706e777ac5599ba3442b25372b39cf4 Mon Sep 17 00:00:00 2001 From: Tom Kralidis Date: Sat, 6 Jul 2024 15:15:03 -0400 Subject: [PATCH] OAProc: test hello-world process evaluation of None and empty dict (#1714) --- pygeoapi/process/hello_world.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pygeoapi/process/hello_world.py b/pygeoapi/process/hello_world.py index 11566bcf2..4577929aa 100644 --- a/pygeoapi/process/hello_world.py +++ b/pygeoapi/process/hello_world.py @@ -130,7 +130,7 @@ def execute(self, data, outputs=None): value = f'Hello {name}! {message}'.strip() produced_outputs = {} - if outputs is None or 'echo' in outputs: + if not bool(outputs) or 'echo' in outputs: produced_outputs = { 'id': 'echo', 'value': value