def clear_boa_cache(event): """Delete the cached book of abstract""" path = boa_settings.get(event, 'cache_path') if path: try: os.remove(os.path.join(Config.getInstance().getXMLCacheDir(), path)) except OSError as e: if e.errno != errno.ENOENT: raise boa_settings.delete(event, 'cache_path')
def clear_boa_cache(event): """Delete the cached book of abstract""" path = boa_settings.get(event, 'cache_path') if path: try: os.remove(os.path.join(config.CACHE_DIR, path)) except OSError as e: if e.errno != errno.ENOENT: raise boa_settings.delete(event, 'cache_path')
def clear_boa_cache(event): """Delete the cached book of abstract""" path = boa_settings.get(event, 'cache_path') if path: try: os.remove(os.path.join(config.CACHE_DIR, path)) except OSError as e: if e.errno != errno.ENOENT: raise boa_settings.delete(event, 'cache_path')
def clear_boa_cache(event): """Delete the cached book of abstract""" path = boa_settings.get(event, 'cache_path') if path: try: os.remove(os.path.join(Config.getInstance().getXMLCacheDir(), path)) except OSError as e: if e.errno != errno.ENOENT: raise boa_settings.delete(event, 'cache_path')
def clear_boa_cache(event): """Delete the cached book of abstract""" path = boa_settings.get(event, 'cache_path') if path: os.remove(path) boa_settings.delete(event, 'cache_path')
def clear_boa_cache(event): """Delete the cached book of abstract""" path = boa_settings.get(event, 'cache_path') if path: os.remove(path) boa_settings.delete(event, 'cache_path')