🎨 Format Python code with Black
This commit is contained in:
parent
18d09432c5
commit
a3da76710b
2 changed files with 6 additions and 4 deletions
|
@ -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}.
|
||||
|
|
|
@ -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"]
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue