Skip to content
This repository was archived by the owner on Oct 15, 2025. It is now read-only.

Commit 41f93b9

Browse files
[coingecko] Make sure cache location exists
1 parent fc25d02 commit 41f93b9

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

coingecko/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ def __init__(self):
9191

9292
self.items = []
9393
self.mtime = 0
94-
self.coinCacheFilePath = self.cacheLocation() / "coins.json"
94+
cache_location = self.cacheLocation()
95+
cache_location.mkdir(parents=True, exist_ok=True)
96+
self.coinCacheFilePath = cache_location / "coins.json"
9597
self.thread = CoinFetcherThread(self.updateIndexItems, self.coinCacheFilePath)
9698
self.thread.start()
9799

0 commit comments

Comments
 (0)