BBrother commited on
Commit
a2f471c
1 Parent(s): 0d9a9a6

Update nologs.py

Browse files
Files changed (1) hide show
  1. nologs.py +1 -1
nologs.py CHANGED
@@ -25,7 +25,7 @@ sys.stderr = logging.getLogger().handlers[0].stream
25
  try:
26
  # 在try块中运行sd_clsa_webui_colab_ipynb_v2_3.py,并将输出重定向到日志文件
27
  with open(log_file, 'a') as log_file_handle:
28
- subprocess.run(['python', 'sd_clsa_webui_colab_ipynb_v2_3.py'], check=True, stdout=log_file_handle, stderr=subprocess.STDOUT)
29
  except subprocess.CalledProcessError as e:
30
  # 捕获异常并记录到日志文件
31
  logging.exception(f"程序发生异常: {e}")
 
25
  try:
26
  # 在try块中运行sd_clsa_webui_colab_ipynb_v2_3.py,并将输出重定向到日志文件
27
  with open(log_file, 'a') as log_file_handle:
28
+ subprocess.run(['python', 'v2_3.py'], check=True, stdout=log_file_handle, stderr=subprocess.STDOUT)
29
  except subprocess.CalledProcessError as e:
30
  # 捕获异常并记录到日志文件
31
  logging.exception(f"程序发生异常: {e}")