mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-01 02:26:10 -04:00
Run Black. (#5482)
This commit is contained in:
parent
7dcf984075
commit
32e7c9e7f2
376 changed files with 9142 additions and 10388 deletions
|
@ -28,6 +28,7 @@ logger = logging.getLogger(__name__)
|
|||
|
||||
class DeactivateAccountHandler(BaseHandler):
|
||||
"""Handler which deals with deactivating user accounts."""
|
||||
|
||||
def __init__(self, hs):
|
||||
super(DeactivateAccountHandler, self).__init__(hs)
|
||||
self._auth_handler = hs.get_auth_handler()
|
||||
|
@ -78,9 +79,9 @@ class DeactivateAccountHandler(BaseHandler):
|
|||
result = yield self._identity_handler.try_unbind_threepid(
|
||||
user_id,
|
||||
{
|
||||
'medium': threepid['medium'],
|
||||
'address': threepid['address'],
|
||||
'id_server': id_server,
|
||||
"medium": threepid["medium"],
|
||||
"address": threepid["address"],
|
||||
"id_server": id_server,
|
||||
},
|
||||
)
|
||||
identity_server_supports_unbinding &= result
|
||||
|
@ -89,7 +90,7 @@ class DeactivateAccountHandler(BaseHandler):
|
|||
logger.exception("Failed to remove threepid from ID server")
|
||||
raise SynapseError(400, "Failed to remove threepid from ID server")
|
||||
yield self.store.user_delete_threepid(
|
||||
user_id, threepid['medium'], threepid['address'],
|
||||
user_id, threepid["medium"], threepid["address"]
|
||||
)
|
||||
|
||||
# delete any devices belonging to the user, which will also
|
||||
|
@ -183,5 +184,6 @@ class DeactivateAccountHandler(BaseHandler):
|
|||
except Exception:
|
||||
logger.exception(
|
||||
"Failed to part user %r from room %r: ignoring and continuing",
|
||||
user_id, room_id,
|
||||
user_id,
|
||||
room_id,
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue