فهرست منبع

Merge pull request #1223 from BluettDream/dev_soulstidy

SoulsTidy
huangrunheng 1 سال پیش
والد
کامیت
720dc604c7
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  1. 3 0
      script.py

+ 3 - 0
script.py

@@ -356,6 +356,9 @@ class Script:
         # 处理御魂溢出
         from tasks.Utils.post_diagnotor import PostDiagnotor, AnalyzeType
         image = getattr(self.device, 'image', None)
+        # image为None则不做处理
+        if image is None:
+            return
         analyse_type = PostDiagnotor().handle(e=e, command=command, image=image)
         if analyse_type == AnalyzeType.SoulOverflow:
             self.config.task_call('SoulsTidy')