From 4f2e3b7245628d2d2c9a1bddcc53669308f44e20 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Wed, 3 Aug 2022 20:28:10 +0800 Subject: [PATCH] crash! --- Difficult_Rocket/crash/crash.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Difficult_Rocket/crash/crash.py b/Difficult_Rocket/crash/crash.py index 1aebda5..1655100 100644 --- a/Difficult_Rocket/crash/crash.py +++ b/Difficult_Rocket/crash/crash.py @@ -89,11 +89,9 @@ def create_crash_report(info: str = None) -> None: crash_file.write(markdown_line_handler(f'DR Version: {str(Difficult_Rocket.Version)}', level=1)) # # DR 的游戏设置 crash_file.write(DR_configs) - try: - for key, value in Difficult_Rocket.DR_options.items(): - crash_file.write(markdown_line_handler(f'Option: {to_code(key)} Type: {to_code(Difficult_Rocket)}', level=1)) - except RuntimeError: - pass + for key, value in Difficult_Rocket.DR_options.items(): + crash_file.write(markdown_line_handler(f'Option: {to_code(key)} Type: {to_code(Difficult_Rocket.DR_option_type(key))}', level=1)) + crash_file.write(markdown_line_handler(f'Value: {to_code(value)}', level=2)) # 多进程信息 crash_file.write(Process_message) for process in all_process: