Commit b6dad7c6 authored by Theophile GENTILHOMME's avatar Theophile GENTILHOMME
Browse files

[cache] Change according to 1.4.x branch

Test was failling previously
parent 3f1a85db
......@@ -78,13 +78,7 @@ def clear(ctx):
if os.path.isdir(ctx.meta['config'].cache):
for k in os.listdir(ctx.meta['config'].cache):
p = os.path.join(ctx.meta['config'].cache, k)
if os.path.isfile(p):
shutil.rmtree(p)
else:
raise click.ClickException("Failed to clear cache %s." % p)
else:
raise click.ClickException("Cache directory does not exist: %s" %
ctx.meta['config'].cache)
@cache.command()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment