From 7e22a8c35e46b73fabae4786b7ab6b412e32d456 Mon Sep 17 00:00:00 2001 From: Abrar Mesbah Date: Thu, 7 Dec 2023 13:44:52 -0500 Subject: [PATCH] change except --- src/service_aggregator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/service_aggregator.py b/src/service_aggregator.py index f38f697..b75689b 100644 --- a/src/service_aggregator.py +++ b/src/service_aggregator.py @@ -187,7 +187,7 @@ async def entry(message, guid, coalesce_type, caller) -> (dict, int): if not override_cache: try: query_graph = message["query_graph"] - except: + except KeyError: return f"No query graph", 422 results = results_cache.get_lookup_result(workflow_def, query_graph) if results is not None: