From e8c77f3398c7e52ce5ee3b8dadb16d0011a291a2 Mon Sep 17 00:00:00 2001 From: Andros Fenollosa Date: Thu, 6 Jul 2023 14:28:28 +0200 Subject: [PATCH 1/3] Add general exception Co-authored-by: Dom Rodriguez --- README.md | 6 ++++++ rssingle.py | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 934007a..96cf375 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,12 @@ A file called `rss.xml` will be created. ## Development +Activate Debug messages by console. + +``` +export SR_LOG_LEVEl=DEBUG +``` + ### Compiling ```shell diff --git a/rssingle.py b/rssingle.py index 9fe9357..9aa17ff 100755 --- a/rssingle.py +++ b/rssingle.py @@ -96,7 +96,7 @@ def main(): for feed in CONFIG["feeds"]: rss = parse_rss_feed(feed) entries = rss.get("entries") - log.debug("Iterating over [input] feed entries..") + log.debug(f"Iterating over {feed} feed entries..") for entry in entries: log.debug("New feed entry created.") @@ -171,7 +171,7 @@ def main(): fe.published("1970-01/01T00:00:00+00:00") fe.updated("1970-01/01T00:00:00+00:00") continue - except KeyError: + except Exception: # Sometimes feeds don't even provide a publish date, so we default to # the start date &time of the Unix epoch. log.warning("Empty publish attribute, defaulting..") From 62f24bb2044d6a8b8fbd5e5f40ee1b4e95bb506a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 10 Jul 2023 04:25:27 +0000 Subject: [PATCH 2/3] Bump lxml from 4.9.2 to 4.9.3 Bumps [lxml](https://github.com/lxml/lxml) from 4.9.2 to 4.9.3. - [Release notes](https://github.com/lxml/lxml/releases) - [Changelog](https://github.com/lxml/lxml/blob/master/CHANGES.txt) - [Commits](https://github.com/lxml/lxml/compare/lxml-4.9.2...lxml-4.9.3) --- updated-dependencies: - dependency-name: lxml dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 0a933a7..dd2820a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ feedgen==0.9.0 feedparser==6.0.10 listparser==0.19.0 -lxml==4.9.2 +lxml==4.9.3 python-dateutil==2.8.2 pyyaml==6.0 pyinstaller==5.13.0 \ No newline at end of file From 0a075bbdc959809aed1b0d4c7ec002b0c5909a16 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 25 Sep 2023 04:44:00 +0000 Subject: [PATCH 3/3] Bump pyinstaller from 5.13.0 to 6.0.0 Bumps [pyinstaller](https://github.com/pyinstaller/pyinstaller) from 5.13.0 to 6.0.0. - [Release notes](https://github.com/pyinstaller/pyinstaller/releases) - [Changelog](https://github.com/pyinstaller/pyinstaller/blob/develop/doc/CHANGES.rst) - [Commits](https://github.com/pyinstaller/pyinstaller/compare/v5.13.0...v6.0.0) --- updated-dependencies: - dependency-name: pyinstaller dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 0a933a7..9faeef9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,4 +4,4 @@ listparser==0.19.0 lxml==4.9.2 python-dateutil==2.8.2 pyyaml==6.0 -pyinstaller==5.13.0 \ No newline at end of file +pyinstaller==6.0.0 \ No newline at end of file