From 13a2fe211a83795d973bb59456792d6bb342da4f Mon Sep 17 00:00:00 2001 From: march3 Date: Mon, 3 Jul 2023 22:34:04 +0800 Subject: [PATCH] =?UTF-8?q?Python=E8=B6=85=E4=BA=BA-=E5=AE=87=E5=AE=99?= =?UTF-8?q?=E6=A8=A1=E6=8B=9F=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/sim_video_cap.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/sim_video_cap.py b/tools/sim_video_cap.py index fa25833..4750e5d 100644 --- a/tools/sim_video_cap.py +++ b/tools/sim_video_cap.py @@ -8,6 +8,7 @@ import win32gui import win32ui import win32con import win32api +import traceback def get_window_handle(window_name="universe_sim"): @@ -78,6 +79,7 @@ def sim_window_screen_shot(wait_ses=-1): img = screen_shot(img_dc) except Exception as e: print("ERROR:", str(e)) + traceback.print_exc() return None return img if wait_ses < 0: -- GitLab