Commit 3dabaf76 authored by Ziirish's avatar Ziirish

fix: do not delete data unless told otherwise (see #232)

parent 86bd40ee
Pipeline #1640 passed with stages
in 5 minutes and 21 seconds
......@@ -373,7 +373,8 @@ class Parser(Doc):
self._refresh_cache()
shutil.rmtree(data)
if delete:
shutil.rmtree(data)
except OSError as exp:
res.append([NOTIF_ERROR, str(exp)])
......
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