瀏覽代碼

```
feat(remove_bg_pixian): 增强错误信息返回

添加HTTP响应状态码到错误消息中,便于调试和问题定位
```

rambo 3 周之前
父節點
當前提交
50d17e16d3
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      python/service/remove_bg_pixian.py

+ 1 - 1
python/service/remove_bg_pixian.py

@@ -63,7 +63,7 @@ class Segment(object):
                 print("response.status_code:", response.status_code)
                 data = {"im": None,
                         "status_code": "time_out",
-                        "message":"处理失败"
+                        "message":"处理失败;{}".format(response.status_code)
                         }
                 return data
         except BaseException as e: