Merge pull request #1549 from YunoHost/ci-format-dev

[CI] Format code with Black
This commit is contained in:
Alexandre Aubin 2023-01-03 16:03:20 +01:00 committed by GitHub
commit f124747fc6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View file

@ -2365,7 +2365,9 @@ def _check_manifest_requirements(manifest: Dict, action: str):
logger.debug(m18n.n("app_requirements_checking", app=app_id)) logger.debug(m18n.n("app_requirements_checking", app=app_id))
# Yunohost version requirement # Yunohost version requirement
yunohost_requirement = version.parse(manifest["integration"]["yunohost"].strip(">= ") or "4.3") yunohost_requirement = version.parse(
manifest["integration"]["yunohost"].strip(">= ") or "4.3"
)
yunohost_installed_version = version.parse( yunohost_installed_version = version.parse(
get_ynh_package_version("yunohost")["version"] get_ynh_package_version("yunohost")["version"]
) )

View file

@ -457,6 +457,7 @@ investigate :
try: try:
import smtplib import smtplib
smtp = smtplib.SMTP("localhost") smtp = smtplib.SMTP("localhost")
smtp.sendmail(from_, [to_], message.encode("utf-8")) smtp.sendmail(from_, [to_], message.encode("utf-8"))
smtp.quit() smtp.quit()