Commit d715c61d by Calen Pennington

Merge pull request #118 from edx/fix/cale/xmodule-assets-deletion-error

Ignore files that don't exist when we try and delete them while compilin...
parents fd4d8168 eccf800f
......@@ -129,7 +129,7 @@ def _write_js(output_root, classes):
def _write_files(output_root, contents):
_ensure_dir(output_root)
for extra_file in set(output_root.files()) - set(contents.keys()):
extra_file.remove()
extra_file.remove_p()
for filename, file_content in contents.iteritems():
(output_root / filename).write_bytes(file_content)
......
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