bergsm / SunLights

Program to adjust TP-Link smart bulbs with the ambient sunlight
GNU General Public License v3.0
0 stars 0 forks source link

Implement try except logic #19

Open bergsm opened 5 years ago

bergsm commented 5 years ago

In getSun.py there are some areas where some try blocks could be implemented, in case we are unable to get the sunrise/sunset times, we should have a contingency plan in place. Some suggestions would be using the previous day’s sunrise/sunset if they are available, or wait until the request comes back as completed.

There may be some other areas in the code that would benefit from try blocks as well.