We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c06b537 commit bef64fdCopy full SHA for bef64fd
kernel_tuner/util.py
@@ -1196,7 +1196,7 @@ def correct_open_cache(cache, open_cache=True):
1196
filestr = cachefile.read().strip()
1197
1198
# if file was not properly closed, pretend it was properly closed
1199
- if len(filestr) > 0 and not filestr[-3:] == "}\n}":
+ if len(filestr) > 0 and not filestr[-3:] in ["}\n}", "}}}"]:
1200
# remove the trailing comma if any, and append closing brackets
1201
if filestr[-1] == ",":
1202
filestr = filestr[:-1]
0 commit comments