Skip to content

Commit 1fdcb5c

Browse files
committed
_get_most_recent_version should not return the version number any more: if the lock was not acquired, this would hit an error
1 parent 060b060 commit 1fdcb5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dynamodb_encryption_sdk/material_providers/most_recent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ def _get_most_recent_version(self, allow_local):
247247
# If blocking, we will never reach this point.
248248
# If not blocking, we want whatever the latest local version is.
249249
version = self._version
250-
return version, self._cache.get(version)
250+
return self._cache.get(version)
251251

252252
try:
253253
max_version = self._get_max_version()

0 commit comments

Comments
 (0)