Skip to content

Commit

Permalink
fix status code error
Browse files Browse the repository at this point in the history
  • Loading branch information
gusibi committed Jun 6, 2019
1 parent ba881df commit 0f0289f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion weixin/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ def upload_file(self, json_body=None):
raise WeixinAPIError(status_code, results["Code"], results["Message"])
else:
raise WeixinAPIError(
pre_resp.status_code, pre_resp["errcode"], pre_resp["errmsg"]
400, pre_resp["errcode"], pre_resp["errmsg"]
)

# 获取文件下载链接
Expand Down

0 comments on commit 0f0289f

Please sign in to comment.