From 38cfb185270fb361ff5d9da9976745e1fecc40f8 Mon Sep 17 00:00:00 2001 From: William Luke Date: Tue, 26 Apr 2022 21:25:02 +0300 Subject: [PATCH] fix: it's ok if you already exsist --- cic/contract/components/attachment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.