This commit is contained in:
Daniel Quinn 2016-03-07 10:12:55 +00:00
parent f7e96eab72
commit 6ca389c28a

View File

@ -52,6 +52,11 @@ def move_documents_and_create_thumbnails(apps, schema_editor):
"\n", opts=("bold",)
))
try:
os.makedirs(settings.SCRATCH_DIR)
except FileExistsError:
pass
for f in sorted(documents):
if not f.endswith("gpg"):