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): ...@@ -78,13 +78,7 @@ def clear(ctx):
if os.path.isdir(ctx.meta['config'].cache): if os.path.isdir(ctx.meta['config'].cache):
for k in os.listdir(ctx.meta['config'].cache): for k in os.listdir(ctx.meta['config'].cache):
p = os.path.join(ctx.meta['config'].cache, k) p = os.path.join(ctx.meta['config'].cache, k)
if os.path.isfile(p):
shutil.rmtree(p) shutil.rmtree(p)
raise click.ClickException("Failed to clear cache %s." % p)
raise click.ClickException("Cache directory does not exist: %s" %
@cache.command() @cache.command()
Supports Markdown
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