Skip to content

Commit

Permalink
Version 0.2.5
Browse files Browse the repository at this point in the history
abcache: Make sure the directory for the cache is created before trying to read/write to it
  • Loading branch information
mos9527 committed Aug 3, 2024
1 parent 36b3e00 commit 5d2762e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion sssekai/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
__VERSION_MAJOR__ = 0
__VERSION_MINOR__ = 2
__VERSION_PATCH__ = 4
__VERSION_PATCH__ = 5

__version__ = '%s.%s.%s' % (__VERSION_MAJOR__,__VERSION_MINOR__,__VERSION_PATCH__)
1 change: 1 addition & 0 deletions sssekai/entrypoint/abcache.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ def add_link(self, url, fname, length):
def main_abcache(args):
cache = AbCache(AbCacheConfig(args.app_version, args.app_platform, args.app_appHash))
db_path = os.path.expanduser(args.db)
os.makedirs(os.path.dirname(db_path), exist_ok=True)
if not args.no_update:
assert args.app_version and args.app_appHash, "You need --app-version and --app-appHash to perform a cache index update!"
with open(db_path, 'wb') as f:
Expand Down

0 comments on commit 5d2762e

Please sign in to comment.