Skip to content
This repository has been archived by the owner on Jun 6, 2023. It is now read-only.

Commit

Permalink
feat: 添加开启代理时,显示可能的解决方法
Browse files Browse the repository at this point in the history
  • Loading branch information
innc11 committed Aug 9, 2021
1 parent b89e120 commit cc329c9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/UploadTool.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,10 @@ def main(self):
except qcloud_cos.cos_exception.CosException as e:
print(traceback.format_exc())
print('COS异常(可能是配置信息不正确)')
if e._message == 'check_hostname requires server_hostname':
print('可能的解决方法:请检查电脑是否开启了代理上网')
print('如果开启,请将<bucket-name>.cos.<region>.myqcloud.com添加到PAC白名单或者暂时关闭代理')
print('<bucket-name>为桶名,<region>为地域,示例:test-123456.cos.ap-chengdu.myqcloud.com')
except SystemExit:
pass
except BaseException as e:
Expand Down

0 comments on commit cc329c9

Please # to comment.