Commit 48230c00 authored by Matthew Zeng's avatar Matthew Zeng
Browse files

Fix KeyError: 'unread_articles', add documentation for *eaf* aborted

parent 2e7ab906
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -144,6 +144,9 @@ EAF use X11 XReparent technology to stick Qt5 window on Emacs buffer area, Wayla

We recommend our users to use KDE, it's stable enough and supports X11 XReparent technology.

### `[EAF] *eaf* aborted (core dumped)`
Please check the `*eaf*` buffer, something is wrong on the Python side. Usually some Python dependencies are not installed correctly.

### Github Personal Access Tokens?
If you use EAF Markdown Previewer, you need the access to a [Personal access token](https://github.com/settings/tokens/new?scopes=), fill something in "Token description" and click button "Generate token" to get your personal token, then set token with code:

+3 −2
Original line number Diff line number Diff line
@@ -351,7 +351,8 @@ class RSSReaderWidget(QWidget):
        with open(self.feed_file_path, "r") as feed_file:
            feed_dict = json.loads(feed_file.read())
            if feed_object.feed_link in feed_dict:
                unread_articles = feed_dict[feed_object.feed_link]["unread_articles"]
                if "unread_articles" in feed_dict[feed_object.feed_link]:
                    unread_articles = ["unread_articles"]

                for index in range(self.feed_list.count()):
                    feed_item = self.feed_list.item(index)
@@ -370,7 +371,7 @@ class RSSReaderWidget(QWidget):
        unread_articles = []
        with open(self.feed_file_path, "r") as feed_file:
            feed_dict = json.loads(feed_file.read())
            if feed_object.feed_link in feed_dict:
            if feed_object.feed_link in feed_dict and "unread_articles" in feed_dict[feed_object.feed_link]:
                unread_articles = feed_dict[feed_object.feed_link]["unread_articles"]

        for index, post in enumerate(feed_object.entries):