From 19217b87e6f68eddcef8d8412540c7a9f19df636 Mon Sep 17 00:00:00 2001 From: Hendrik Strobelt Date: Mon, 19 Jan 2026 12:52:06 -0500 Subject: [PATCH] fixing a bug that falsely gave a warning when an empty list of requirements are aact-ed upon with no strategy. was: gave a warning fix: will not show a warning anymore --- mellea/stdlib/functional.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mellea/stdlib/functional.py b/mellea/stdlib/functional.py index 36fe1ca0..41263f42 100644 --- a/mellea/stdlib/functional.py +++ b/mellea/stdlib/functional.py @@ -491,7 +491,7 @@ async def aact( if strategy is None: # Only use the strategy if one is provided. Add a warning if requirements were passed in though. - if requirements is not None and len(requirements) >= 0: + if requirements is not None and len(requirements) > 0: FancyLogger.get_logger().warning( "Calling the function with NO strategy BUT requirements. No requirement is being checked!" )