mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
Fix syntax
This commit is contained in:
parent
3e85e52b3f
commit
00e9c08609
@ -241,7 +241,8 @@ def setup():
|
|||||||
except UpgradeDatabaseException:
|
except UpgradeDatabaseException:
|
||||||
sys.stderr.write(
|
sys.stderr.write(
|
||||||
"\nFailed to upgrade database.\n"
|
"\nFailed to upgrade database.\n"
|
||||||
"Have you checked for version specific instructions in UPGRADES.rst?\n"
|
"Have you checked for version specific instructions in"
|
||||||
|
" UPGRADES.rst?\n"
|
||||||
)
|
)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
@ -249,7 +250,7 @@ def setup():
|
|||||||
|
|
||||||
db_pool = hs.get_db_pool()
|
db_pool = hs.get_db_pool()
|
||||||
|
|
||||||
if db_name == ":memory:"
|
if db_name == ":memory:":
|
||||||
# Memory databases will need to be setup each time they are opened.
|
# Memory databases will need to be setup each time they are opened.
|
||||||
reactor.callWhenRunning(
|
reactor.callWhenRunning(
|
||||||
hs.get_db_pool().runWithConnection, prepare_database
|
hs.get_db_pool().runWithConnection, prepare_database
|
||||||
|
Loading…
Reference in New Issue
Block a user