summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Triguba <eugenetriguba@gmail.com>2020-07-13 18:50:36 -0500
committerEugene Triguba <eugenetriguba@gmail.com>2020-07-13 18:50:36 -0500
commitc5ee337b8366035efa3908235c8df825061e902a (patch)
tree51b68b9fb589c7fa72202736f1d7d9e7f64db9f7
parentAdd note on running tasks to contributing guidelines (diff)
downloadlirc-c5ee337b8366035efa3908235c8df825061e902a.zip
Fix socket_timeout reference without dunder (__)
-rw-r--r--CHANGELOG.rst11
-rw-r--r--lirc/lirc.py2
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)