Fixed problem with handling CWOP connection errors.

This commit is contained in:
Tom Keffer
2019-02-22 06:30:26 -08:00
parent 5bfcb840b8
commit 0a21a72801
2 changed files with 3 additions and 2 deletions

View File

@@ -1281,8 +1281,7 @@ class CWOPThread(RESTThread):
# Unsuccessful. Close it in case it was open:
try:
_sock.close()
except AttributeError as xxx_todo_changeme:
socket.error = xxx_todo_changeme
except (AttributeError, socket.error):
pass
raise ConnectError(e)

View File

@@ -16,6 +16,8 @@ record interval is zero. Fixes issue #375.
Posts to the Weather Underground now use https, instead of http.
Thanks to user mljenkins! PR #378.
Fixed problem with handling CWOP connection errors.
3.9.1 02/06/2019