diff --git a/libsaria/storage/cache.py b/libsaria/storage/cache.py index 9982ab5b..4f9128f8 100644 --- a/libsaria/storage/cache.py +++ b/libsaria/storage/cache.py @@ -27,9 +27,12 @@ def make_cache_path(artist, album, file): def fill_cache(artist, album, title, cache_func, cache_path): text = cache_func(artist, album, title) if text != None: - f = open(cache_path, 'w') - f.write(text) - f.close() + try: + f = open(cache_path, 'w') + f.write(text) + f.close() + except: + pass return True return False