sq6jnx / sr0wx.py

Automatic hamradio weather station written in python
Apache License 2.0
13 stars 4 forks source link

Add timeouts when calling `urllib.request` #40

Open sq6jnx opened 8 years ago

sq6jnx commented 8 years ago

When API service is down modules can wait far too long...

I believe 10 second timeout should be OK.

sq6jnx commented 8 years ago

Suggested solution:

Second option sounds better for me, because in case of calling same URL twice it will not contact any service, but return response from cache.