From 81a8cb45d79206e38508bd33f06277643bd287fa Mon Sep 17 00:00:00 2001 From: Daniel Quinn Date: Mon, 28 May 2018 13:08:00 +0100 Subject: [PATCH] It's exist_ok=, not exists_ok= -- my bad. --- src/documents/consumer.py | 2 +- src/documents/management/commands/document_consumer.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(