Commit 33f86a7a by ichuang Committed by David Baumgold

skip *~ files in import of extra content (e.g. info and about pages)

parent b9edc195
......@@ -568,6 +568,9 @@ class XMLModuleStore(ModuleStoreReadBase):
if not os.path.isfile(filepath):
continue
if filepath.endswith('~'): # skip *~ files
continue
with open(filepath) as f:
try:
html = f.read().decode('utf-8')
......
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