diff --git a/appslib/logging_sender.py b/appslib/logging_sender.py index bba28cc..a257668 100644 --- a/appslib/logging_sender.py +++ b/appslib/logging_sender.py @@ -35,7 +35,9 @@ def notify(message: str, channel: str, markdown: bool = False) -> None: try: subprocess.call(command, stdout=subprocess.DEVNULL) except FileNotFoundError: - logging.warning("The logging sender tool /var/www/webhooks/matrix-commander does not exist.") + logging.warning( + "The logging sender tool /var/www/webhooks/matrix-commander does not exist." + ) except subprocess.CalledProcessError as e: logging.warning( f"""Could not send a notification on {channel}. diff --git a/autoupdate_app_sources/autoupdate_app_sources.py b/autoupdate_app_sources/autoupdate_app_sources.py index 1960a3f..bb03c8a 100755 --- a/autoupdate_app_sources/autoupdate_app_sources.py +++ b/autoupdate_app_sources/autoupdate_app_sources.py @@ -463,13 +463,13 @@ class AppAutoUpdater: if revision_type == "release": releases: dict[str, dict[str, Any]] = { - release["tag_name"]: release - for release in api.releases() + release["tag_name"]: release for release in api.releases() } if not allow_prereleases: releases = { - name: info for name, info in releases.items() + name: info + for name, info in releases.items() if not info["draft"] and not info["prerelease"] }