Verified Commit 2a5b369b authored by anarcat's avatar anarcat
Browse files

handle non-existent safedirs

parent 7c2bbfd9
......@@ -305,10 +305,13 @@ def main():
logging.debug("subpaths: %s", subpaths)
for path in subpaths[1:]:
client.process_path(folder, path)
shutil.rmtree(safe_dir)
try:
shutil.rmtree(safe_dir)
except FileNotFoundError:
pass
assert (
not os.path.exists(safe_dir) or len(os.listdir(safe_dir)) == 0
), "safe dir should be cleaned before invocations"
), "safe dir should be cleaned between invocations"
class ProcessingClient(wc.Client):
......
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