PeterDing / BaiduPCS-Py

BaiduPCS API & App 百度网盘客户端 和 API
MIT License
667 stars 108 forks source link

Update pcs.py #97

Closed zoubenjia closed 1 year ago

zoubenjia commented 1 year ago

Add error handling for HTTPError exception to cope with http 403 error.

zoubenjia commented 1 year ago

This is for issue #95

PeterDing commented 1 year ago

Can you make sure that the 403 status code is the unavailable signal of downloading url?

zoubenjia commented 1 year ago

Hi Peter,

Can you make sure that the 403 status code is the unavailable signal of downloading url? I think 403 is "Forbidden". And the exception should now terminate the other downloading processes. BTW there was a type which I have just rectified. Cheers Ben

PeterDing commented 1 year ago

Thanks for your contribution.