From 9228cd70f81d13ba27490e11d78ac8c8688874c7 Mon Sep 17 00:00:00 2001 From: David Arnold Date: Fri, 17 Nov 2023 09:30:53 +0100 Subject: [PATCH] fix: code style --- frappe/utils/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/utils/__init__.py b/frappe/utils/__init__.py index 8df7f52b60..6d6162138e 100644 --- a/frappe/utils/__init__.py +++ b/frappe/utils/__init__.py @@ -447,7 +447,7 @@ def execute_in_shell(cmd, verbose=False, low_priority=False, check_exit_code=Fal import tempfile from subprocess import Popen - if type(cmd) is list: + if isinstance(cmd, list): # ensure it's properly escaped; only a single string argument executes via shell cmd = shlex.join(cmd)