summary refs log tree commit diff
path: root/synapse/_scripts/synapse_port_db.py
diff options
context:
space:
mode:
authorBrendan Abolivier <babolivier@matrix.org>2022-06-07 16:24:56 +0100
committerBrendan Abolivier <babolivier@matrix.org>2022-06-07 16:24:56 +0100
commitf699573e68d5ea1a2c53331caf01d4c131384a63 (patch)
tree54cf261329017f588141ff7cdbe2142229023771 /synapse/_scripts/synapse_port_db.py
parentDefine source (diff)
parentReturn the same error message from `/login` when password is incorrect and wh... (diff)
downloadsynapse-f699573e68d5ea1a2c53331caf01d4c131384a63.tar.xz
Merge branch 'develop' of github.com:matrix-org/synapse into babolivier/sonar_coverage
Diffstat (limited to 'synapse/_scripts/synapse_port_db.py')
-rwxr-xr-xsynapse/_scripts/synapse_port_db.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/synapse/_scripts/synapse_port_db.py b/synapse/_scripts/synapse_port_db.py

index 361b51d2fa..c753dfa7cb 100755 --- a/synapse/_scripts/synapse_port_db.py +++ b/synapse/_scripts/synapse_port_db.py
@@ -40,7 +40,6 @@ from typing import ( ) import yaml -from matrix_common.versionstring import get_distribution_version_string from typing_extensions import TypedDict from twisted.internet import defer, reactor as reactor_ @@ -84,7 +83,7 @@ from synapse.storage.databases.state.bg_updates import StateBackgroundUpdateStor from synapse.storage.engines import create_engine from synapse.storage.prepare_database import prepare_database from synapse.types import ISynapseReactor -from synapse.util import Clock +from synapse.util import SYNAPSE_VERSION, Clock # Cast safety: Twisted does some naughty magic which replaces the # twisted.internet.reactor module with a Reactor instance at runtime. @@ -258,9 +257,7 @@ class MockHomeserver: self.clock = Clock(reactor) self.config = config self.hostname = config.server.server_name - self.version_string = "Synapse/" + get_distribution_version_string( - "matrix-synapse" - ) + self.version_string = SYNAPSE_VERSION def get_clock(self) -> Clock: return self.clock