diff --git a/cic/contract/components/attachment.py b/cic/contract/components/attachment.py index 91e431f..5467692 100644 --- a/cic/contract/components/attachment.py +++ b/cic/contract/components/attachment.py @@ -45,7 +45,7 @@ class Attachment(Data): def start(self): """Initialize attachment settings from template.""" super(Attachment, self).start() - os.makedirs(self.attachment_path) + os.makedirs(self.attachment_path, exist_ok=True) def get(self, k): """Get a single attachment by the sha256 hash of the content.