From a607aeb1270c080e4cece7c63202633b164b85de Mon Sep 17 00:00:00 2001 From: Kumi Date: Mon, 7 Feb 2022 14:59:20 +0100 Subject: [PATCH] Use getTempDir()... --- worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worker.py b/worker.py index f8fd2d8..980b538 100644 --- a/worker.py +++ b/worker.py @@ -9,7 +9,7 @@ from classes.smtp import SMTP config = Config("settings.ini") -tempdir = pathlib.Path(config["MONSTER"].get("TempDir", "/tmp/MailMonster/")) +tempdir = config.getTempDir() if not tempdir.exists(): tempdir.mkdir()