diff --git a/bin/user/belchertown.py b/bin/user/belchertown.py index 910694b7..370c0c83 100644 --- a/bin/user/belchertown.py +++ b/bin/user/belchertown.py @@ -1409,6 +1409,12 @@ def aeris_icon(data): # Catch errors caused by ASCII characters in Python2 file.write(forecast_file_result) loginf("New forecast file downloaded to %s" % forecast_file) + except FileNotFoundError as error: + loginf( + "Belchertown JSON folder does not exist. Usually this " + "is an error that only occurs on the first run. If it " + "is appearing repeatedly, check file permissions." + ) except IOError as e: raise Warning( "Error writing forecast info to %s. Reason: %s" @@ -1532,7 +1538,7 @@ def aeris_icon(data): visibility = "N/A" visibility_unit = "" cloud_cover = "" - logerr("Aeris/XWeather connection error: %s" % error) + logerr("Aeris/Xweather error: %s" % error) # ============================================================================== # Earthquake Data