diff --git a/lyra/lyra/src/hydstra/helper.py b/lyra/lyra/src/hydstra/helper.py index 0dd9cf9..27c77ad 100644 --- a/lyra/lyra/src/hydstra/helper.py +++ b/lyra/lyra/src/hydstra/helper.py @@ -73,7 +73,8 @@ async def get_site_variable_as_trace( datasource=datasource, ) - if trace_json is None: return trace_json + if trace_json is None: + return trace_json if len(trace_json.get("return", {}).get("traces", [])):