fix: it's ok if you already exsist
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
William Luke 2022-04-26 21:25:02 +03:00
parent c84517e3db
commit 38cfb18527

View File

@ -45,7 +45,7 @@ class Attachment(Data):
def start(self): def start(self):
"""Initialize attachment settings from template.""" """Initialize attachment settings from template."""
super(Attachment, self).start() super(Attachment, self).start()
os.makedirs(self.attachment_path) os.makedirs(self.attachment_path, exist_ok=True)
def get(self, k): def get(self, k):
"""Get a single attachment by the sha256 hash of the content. """Get a single attachment by the sha256 hash of the content.