Browse Source

fix: remove captcha_output

姚凯 7 months ago
parent
commit
c2c3fe32fb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scripts/manage.py

+ 1 - 1
scripts/manage.py

@@ -458,7 +458,7 @@ def free_memory():
 
 def exec_command(*args,shell=False):
     try:
-        proc = subprocess.run(args, check=False, capture_output=True, universal_newlines=True,shell=shell)
+        proc = subprocess.run(args, check=False, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True,shell=shell)
         subprocess_output(proc.stdout.strip())
         return proc.returncode, proc.stdout, proc.stderr
     except Exception as e: