From 1fe91686393a06371d1db3898459179b3ae35af9 Mon Sep 17 00:00:00 2001 From: Freddd13 <50367552+Freddd13@users.noreply.github.com> Date: Tue, 24 Oct 2023 16:43:27 +0800 Subject: [PATCH] fix: add the missing makedir of local folder --- auto_score/directly_request/mms.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/auto_score/directly_request/mms.py b/auto_score/directly_request/mms.py index 7fe2087..b3a14f0 100644 --- a/auto_score/directly_request/mms.py +++ b/auto_score/directly_request/mms.py @@ -1,7 +1,7 @@ ''' Date: 2023-10-23 18:04:14 LastEditors: Kumo -LastEditTime: 2023-10-24 00:33:19 +LastEditTime: 2023-10-24 16:42:25 Description: ''' from auto_score.utils.proxy_decorator import MY_PROXY @@ -27,6 +27,8 @@ def __init__(self, email, password, local_savefolder): self.email = email self.password = password self.local_savefolder = local_savefolder + if not os.path.exists(self.local_savefolder): + os.makedirs(self.local_savefolder) self.login_url = "https://mms.pd.mapia.io/mms/public/user/signin/email" self.headers_login = {