From 9efc068de2b5406002fd07e0581ff6804144956a Mon Sep 17 00:00:00 2001 From: mihasinkec Date: Wed, 24 Mar 2021 13:43:43 +0100 Subject: [PATCH] Fixed upload path type cast. --- portal/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/portal/base.py b/portal/base.py index 96c9527..39241ab 100644 --- a/portal/base.py +++ b/portal/base.py @@ -76,7 +76,7 @@ class UploadHandler: def get_uploads_subdir(self, dir_name): - subdir = self.config['UPLOADS_DIR'] / dir_name + subdir = Path(self.config['UPLOADS_DIR']) / dir_name if not subdir.exists(): subdir.mkdir(parents=True) return subdir