diff options
| -rw-r--r-- | CHANGELOG.rst | 11 | ||||
| -rw-r--r-- | lirc/lirc.py | 2 |
2 files changed, 11 insertions, 2 deletions
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index d005b5e..a3749ce 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -7,7 +7,16 @@ The format is based on `Keep a Changelog <https://keepachangelog.com/en/1.0.0/>`_, and this project adheres to `Semantic Versioning <https://semver.org/spec/v2.0.0.html>`_. +Unreleased +------------------ + +**Fixed** + + * An issue where if the socket times out while trying to retrieve + data from it, the error message would try to reference the socket_timeout + variable stored in the class without the dunder (__) so it would fail. + 1.0.0 - 2020-07-12 ------------------ - - Initial Release
\ No newline at end of file + * Initial Release
\ No newline at end of file diff --git a/lirc/lirc.py b/lirc/lirc.py index 21a3d42..f0ab749 100644 --- a/lirc/lirc.py +++ b/lirc/lirc.py @@ -101,7 +101,7 @@ class Lirc: if err == "timed out": raise LircSocketTimeoutError( f"could not find any data on the socket after " - f"{self.socket_timeout} seconds, socket timed out." + f"{self.__socket_timeout} seconds, socket timed out." ) else: raise LircSocketError(e) |