summaryrefslogtreecommitdiff
path: root/ChangeLog.rst
diff options
context:
space:
mode:
authorLudwig Hähne <lhaehne@gmail.com>2021-10-15 15:28:10 +0200
committerGitHub <noreply@github.com>2021-10-15 06:28:10 -0700
commit79d98d23cd589556b0dc51a7d10ea338e90a944e (patch)
tree182a76f4aabcb727e96643459eb527a32a57bd03 /ChangeLog.rst
parent25e38dfbf488d969b42af7a3299e33044e7a8730 (diff)
downloadpymemcache-79d98d23cd589556b0dc51a7d10ea338e90a944e.tar.gz
Return default from hash client when using positional argument (#354)
When using HashClient with ignore_exc, get would always return None if no server is available and the default is passed as a positional argument. The other clients return the default value in this case. An earlier fix only had the desired effect when passing default as a keyword argument. For example, Django passes the default as a positional argument. Return the default value so HashClient behaves like the other clients.
Diffstat (limited to 'ChangeLog.rst')
-rw-r--r--ChangeLog.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog.rst b/ChangeLog.rst
index a73b219..cc448d9 100644
--- a/ChangeLog.rst
+++ b/ChangeLog.rst
@@ -1,6 +1,11 @@
Changelog
=========
+Unreleased
+----------
+* ``Client.get`` returns the default when using ``ignore_exc`` and if memcached
+ is unavailable
+
New in version 3.5.0
--------------------
* Sockets are now closed on ``MemcacheUnexpectedCloseError``.