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.
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.