1
0
Fork 0

🎨 Format Python code with Black

This commit is contained in:
Tagadda 2024-04-02 15:45:34 +00:00 committed by OniriCorpe
parent 18d09432c5
commit a3da76710b
2 changed files with 6 additions and 4 deletions

View file

@ -35,7 +35,9 @@ def notify(message: str, channel: str, markdown: bool = False) -> None:
try: try:
subprocess.call(command, stdout=subprocess.DEVNULL) subprocess.call(command, stdout=subprocess.DEVNULL)
except FileNotFoundError: 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: except subprocess.CalledProcessError as e:
logging.warning( logging.warning(
f"""Could not send a notification on {channel}. f"""Could not send a notification on {channel}.

View file

@ -463,13 +463,13 @@ class AppAutoUpdater:
if revision_type == "release": if revision_type == "release":
releases: dict[str, dict[str, Any]] = { releases: dict[str, dict[str, Any]] = {
release["tag_name"]: release release["tag_name"]: release for release in api.releases()
for release in api.releases()
} }
if not allow_prereleases: if not allow_prereleases:
releases = { 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"] if not info["draft"] and not info["prerelease"]
} }