From 27da15134036cee2feb576fc36a393e0aa982d12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=BChnel?= Date: Tue, 5 May 2020 16:54:08 +0200 Subject: [PATCH] creating tmp dir as needed --- scripts/metrics/buildbot_status_emails.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/metrics/buildbot_status_emails.py b/scripts/metrics/buildbot_status_emails.py index 3eba66d..745003b 100644 --- a/scripts/metrics/buildbot_status_emails.py +++ b/scripts/metrics/buildbot_status_emails.py @@ -37,6 +37,7 @@ class LLVMBotArchiveScanner: return EMAIL_ARCHIVE_URL.format(year=month.year, month=month.strftime('%B')) def _download_archive(self, month: datetime.date): + os.makedirs(self._tmpdir, exist_ok=True) filename = os.path.join(self._tmpdir, 'llvmdev-{year}-{month:02d}.txt'.format(year=month.year, month=month.month)) url = self._generate_archive_url(month) # FIXME: decompress the files