From 4dd422d07c1f235dc641f95ba6f57e84d7dfe20f Mon Sep 17 00:00:00 2001 From: Carlos Galindo Date: Sat, 25 May 2024 12:19:36 +0200 Subject: [PATCH] create config_dir automatically --- issue_generator.py | 2 ++ 1 file changed, 2 insertions(+) mode change 100755 => 100644 issue_generator.py diff --git a/issue_generator.py b/issue_generator.py old mode 100755 new mode 100644 index d2201cc..6d624f8 --- a/issue_generator.py +++ b/issue_generator.py @@ -174,6 +174,8 @@ class FeedReader: else: etag = None feed = feedparser.parse(self.url, etag=etag) if feed.etag and feed.etag != etag: + if not os.path.isdir(CONFIG_DIR): + os.mkdir(CONFIG_DIR) with open(self.etag_file, mode='w', encoding="UTF-8") as file: file.write(feed.etag) if feed.status == 304: