Skip to content

Commit

Permalink
Don't cache add-ons if cacheHash is None
Browse files Browse the repository at this point in the history
  • Loading branch information
nvdaes committed Jul 3, 2023
1 parent a400ee3 commit a3b090f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/_addonStore/dataManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def _getCacheHash(self) -> Optional[str]:
def _cacheCompatibleAddons(self, addonData: str, cacheHash: str):
if not NVDAState.shouldWriteToDisk():
return
if not addonData:
if not addonData or not cacheHash:
return
cacheData = {
"cacheHash": cacheHash,
Expand All @@ -139,7 +139,7 @@ def _cacheCompatibleAddons(self, addonData: str, cacheHash: str):
def _cacheLatestAddons(self, addonData: str, cacheHash: str):
if not NVDAState.shouldWriteToDisk():
return
if not addonData:
if not addonData or not cacheHash:
return
cacheData = {
"cacheHash": cacheHash,
Expand Down

0 comments on commit a3b090f

Please sign in to comment.