Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
anoadragon453 committed Apr 17, 2020
1 parent fb3f1fb commit 2fdfa96
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions synapse/handlers/e2e_keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,13 @@
# limitations under the License.

import logging
from typing import Dict, Optional, Tuple

from six import iteritems

import attr
from canonicaljson import encode_canonical_json, json
from signedjson.key import decode_verify_key_bytes
from signedjson.sign import SignatureVerifyException, verify_signed_json
from signedjson.types import VerifyKey
from unpaddedbase64 import decode_base64

from twisted.internet import defer
Expand Down Expand Up @@ -1018,9 +1016,11 @@ def _get_e2e_cross_signing_verify_key(
# We only get "master" and "self_signing" keys from remote servers
and key_type in ["master", "self_signing"]
):
key, key_id, verify_key = yield self._retrieve_cross_signing_keys_for_remote_user(
user, key_type
)
(
key,
key_id,
verify_key,
) = yield self._retrieve_cross_signing_keys_for_remote_user(user, key_type)

if key is None:
logger.debug("No %s key found for %s", key_type, user_id)
Expand Down

0 comments on commit 2fdfa96

Please sign in to comment.