Skip to content

Commit 7977d3c

Browse files
authored
FFM-11331 Only delete cache key if it exists (#93)
* FFM-11331 Only delete key if it exists * FFM-11331 1.6.1 bump
1 parent b289a01 commit 7977d3c

File tree

6 files changed

+7
-6
lines changed

6 files changed

+7
-6
lines changed

featureflags/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
__author__ = """Harness"""
44
__email__ = "[email protected]"
5-
__version__ = '1.7.0'
5+
__version__ = '1.6.1'

featureflags/analytics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
VARIATION_VALUE_ATTRIBUTE = 'variationValue'
3939
TARGET_ATTRIBUTE = 'target'
4040
SDK_VERSION_ATTRIBUTE = 'SDK_VERSION'
41-
SDK_VERSION = '1.7.0'
41+
SDK_VERSION = '1.6.1'
4242
SDK_TYPE_ATTRIBUTE = 'SDK_TYPE'
4343
SDK_TYPE = 'server'
4444
SDK_LANGUAGE_ATTRIBUTE = 'SDK_LANGUAGE'

featureflags/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
from .streaming import StreamProcessor
2424
from .util import log
2525

26-
VERSION: str = "1.7.0"
26+
VERSION: str = "1.6.1"
2727

2828

2929
class MissingOrEmptyAPIKeyException(Exception):

featureflags/lru_cache.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ def get(self, key: str) -> Any:
3939

4040
def remove(self, keys: List[str]) -> None:
4141
for key in keys:
42-
del self.cache[key]
42+
if key in self.cache:
43+
del self.cache[key]
4344

4445
def keys(self) -> List[str]:
4546
return list(self.cache.keys())

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 1.7.0
2+
current_version = 1.6.1
33
commit = True
44
tag = True
55

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,6 @@
5757
test_suite="tests",
5858
tests_require=test_requirements,
5959
url="https://github.com/harness/ff-python-server-sdk",
60-
version='1.7.0',
60+
version='1.6.1',
6161
zip_safe=False,
6262
)

0 commit comments

Comments
 (0)