diff libervia/backend/plugins/plugin_misc_account.py @ 4270:0d7bb4df2343

Reformatted code base using black.
author Goffi <goffi@goffi.org>
date Wed, 19 Jun 2024 18:44:57 +0200
parents 4b842c1fb686
children
line wrap: on
line diff
--- a/libervia/backend/plugins/plugin_misc_account.py	Tue Jun 18 12:06:45 2024 +0200
+++ b/libervia/backend/plugins/plugin_misc_account.py	Wed Jun 19 18:44:57 2024 +0200
@@ -314,7 +314,8 @@
             # there is no email when an existing XMPP account is used
             body = f"New account created on {domain}: {profile} [{email or '<no email>'}]"
             d_admin = sat_email.send_email(
-                self.host.memory.config, admins_emails, subject, body)
+                self.host.memory.config, admins_emails, subject, body
+            )
 
         admins_emails_txt = ", ".join(["<" + addr + ">" for addr in admins_emails])
         d_admin.addCallbacks(
@@ -348,7 +349,7 @@
                 "Account creation confirmation sent to <{}>".format(email)
             ),
             self._send_email_eb,
-            errbackArgs=[email]
+            errbackArgs=[email],
         )
         return defer.DeferredList([d_user, d_admin])
 
@@ -743,15 +744,18 @@
         d.addCallback(
             lambda __: self.host.memory.get_profile_name(jid_s)
         )  # checks if the profile has been successfuly created
-        d.addCallback(lambda profile: defer.ensureDeferred(
-            self.host.connect(profile, password, {}, 0)))
+        d.addCallback(
+            lambda profile: defer.ensureDeferred(
+                self.host.connect(profile, password, {}, 0)
+            )
+        )
 
         def connected(result):
             self.send_emails(None, profile=jid_s)
             return result
 
         def remove_profile(
-            failure
+            failure,
         ):  # profile has been successfully created but the XMPP credentials are wrong!
             log.debug(
                 "Removing previously auto-created profile: %s" % failure.getErrorMessage()