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: