ephraim / lcurse

Python script to have a "curse" compatible client for linux
The Unlicense
51 stars 24 forks source link

Perform max 5 retries on URL fetches to cope with timeouts #18

Closed MathyV closed 8 years ago

MathyV commented 8 years ago

Because I have a lot of addons, the Curse server was blocking some of the requests, making it impossible for me to update all of them at the same time as failure of one results in a complete stop of the process.

I added a try-catch loop which retries a request maximum 5 times which solves the problems for me.

This should also solve #15 for the same reasons. I also experienced that issue and that too is gone now.

Another solution might be not to throw all the requests to the server at the same time, if you don't like this patch :-)

ephraim commented 8 years ago

Nice wrapper! Merged! Thanks