fix: it's ok if you already exsist
continuous-integration/drone/push Build is passing Details

This commit is contained in:
William Luke 2022-04-26 21:25:02 +03:00
parent c84517e3db
commit 38cfb18527
1 changed files with 1 additions and 1 deletions

View File

@ -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.