Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

It's exist_ok=, not exists_ok= -- my bad.

Daniel Quinn81a8cb45d792
diff --git a/src/documents/consumer.py b/src/documents/consumer.py
index 37151d1b4..6732c458a 100644
--- a/src/documents/consumer.py
+++ b/src/documents/consumer.py
@@ -48,7 +48,7 @@ class Consumer:
self.consume = consume
self.scratch = scratch
- os.makedirs(self.scratch, exists_ok=True)
+ os.makedirs(self.scratch, exist_ok=True)
if not self.consume:
raise ConsumerError(
diff --git a/src/documents/management/commands/document_consumer.py b/src/documents/management/commands/document_consumer.py
index 4bf403318..41e5382d5 100644
--- a/src/documents/management/commands/document_consumer.py
+++ b/src/documents/management/commands/document_consumer.py
@@ -81,7 +81,7 @@ class Command(BaseCommand):
raise CommandError(e)
for d in (self.ORIGINAL_DOCS, self.THUMB_DOCS):
- os.makedirs(d, exists_ok=True)
+ os.makedirs(d, exist_ok=True)
logging.getLogger(__name__).info(
"Starting document consumer at {}{}".format(