diff --git a/skyvern/cli/database.py b/skyvern/cli/database.py index f780e24f25..5720454528 100644 --- a/skyvern/cli/database.py +++ b/skyvern/cli/database.py @@ -11,7 +11,9 @@ def command_exists(command: str) -> bool: - return shutil.which(command) is not None + # Minimize attribute lookup by localizing 'which' + which = shutil.which + return which(command) is not None def run_command(command: str, check: bool = True) -> tuple[Optional[str], Optional[int]]: