소스 검색

删除目录

rambo 4 달 전
부모
커밋
0957bc7089
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      python/api.py

+ 2 - 0
python/api.py

@@ -506,6 +506,7 @@ async def handle_detail(request: Request, params: HandlerDetail):
                         msg_type="scene_progress",
                     )
                 except:
+                    os.remove(save_image_path)
                     handler_result.append(
                         {
                             "goods_art_no": goods_art_no,
@@ -563,6 +564,7 @@ async def handle_detail(request: Request, params: HandlerDetail):
                         msg_type="upper_footer_progress",
                     )
                 except:
+                    os.remove(save_image_path)
                     handler_result.append(
                         {
                             "goods_art_no": goods_art_no,