From c5ee337b8366035efa3908235c8df825061e902a Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Mon, 13 Jul 2020 18:50:36 -0500 Subject: Fix socket_timeout reference without dunder (__) --- CHANGELOG.rst | 11 ++++++++++- 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 `_, and this project adheres to `Semantic Versioning `_. +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) -- cgit v1.2.3