mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-14 13:53:52 +01:00
Fix pyflakes warnings
This commit is contained in:
parent
15be181642
commit
d56e389a95
4 changed files with 2 additions and 4 deletions
|
@ -74,7 +74,7 @@ class ServerConfig(Config):
|
||||||
return syutil.crypto.signing_key.read_signing_keys(
|
return syutil.crypto.signing_key.read_signing_keys(
|
||||||
signing_keys.splitlines(True)
|
signing_keys.splitlines(True)
|
||||||
)
|
)
|
||||||
except Exception as e:
|
except Exception:
|
||||||
raise ConfigError(
|
raise ConfigError(
|
||||||
"Error reading signing_key."
|
"Error reading signing_key."
|
||||||
" Try running again with --generate-config"
|
" Try running again with --generate-config"
|
||||||
|
|
|
@ -17,7 +17,6 @@
|
||||||
from twisted.web.http import HTTPClient
|
from twisted.web.http import HTTPClient
|
||||||
from twisted.internet.protocol import Factory
|
from twisted.internet.protocol import Factory
|
||||||
from twisted.internet import defer, reactor
|
from twisted.internet import defer, reactor
|
||||||
from twisted.internet.endpoints import connectProtocol
|
|
||||||
from synapse.http.endpoint import matrix_endpoint
|
from synapse.http.endpoint import matrix_endpoint
|
||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
|
|
|
@ -344,7 +344,7 @@ class RoomInitialSyncRestServlet(RestServlet):
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
def on_GET(self, request, room_id):
|
def on_GET(self, request, room_id):
|
||||||
user = yield self.auth.get_user_by_req(request)
|
yield self.auth.get_user_by_req(request)
|
||||||
# TODO: Get all the initial sync data for this room and return in the
|
# TODO: Get all the initial sync data for this room and return in the
|
||||||
# same format as initial sync, that is:
|
# same format as initial sync, that is:
|
||||||
# {
|
# {
|
||||||
|
|
|
@ -104,7 +104,6 @@ class KeyStore(SQLBaseStore):
|
||||||
ts_now_ms (int): The time now in milliseconds
|
ts_now_ms (int): The time now in milliseconds
|
||||||
verification_key (VerifyKey): The NACL verify key.
|
verification_key (VerifyKey): The NACL verify key.
|
||||||
"""
|
"""
|
||||||
verify_key_bytes = verify_key.encode()
|
|
||||||
return self._simple_insert(
|
return self._simple_insert(
|
||||||
table="server_signature_keys",
|
table="server_signature_keys",
|
||||||
values={
|
values={
|
||||||
|
|
Loading…
Reference in a new issue