Skip to content

Commit 828ac76

Browse files
committed
Fixed cache listing for cache contains check with string
1 parent 932b273 commit 828ac76

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

shuffle-tools/1.2.0/src/app.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1570,6 +1570,14 @@ def check_cache_contains(self, key, value, append):
15701570
"key": key,
15711571
}
15721572

1573+
if isinstance(value, dict) or isinstance(value, list) or isinstance(value, object):
1574+
try:
1575+
value = json.dumps(value)
1576+
except:
1577+
pass
1578+
elif not isinstance(value, str):
1579+
value = str(value)
1580+
15731581
if append.lower() == "true":
15741582
append = True
15751583
else:

0 commit comments

Comments
 (0)