0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-14 18:43:53 +01:00

Fix incorrect placeholder syntax in database prepartion code (#7575)

We were using `logger` syntax which isn't supported by `Exception`s.
This commit is contained in:
Andrew Morgan 2020-05-27 16:26:59 +01:00 committed by GitHub
parent 98483890ee
commit 0a6e837aaa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

1
changelog.d/7575.bugfix Normal file
View file

@ -0,0 +1 @@
Fix str placeholders in an instance of `PrepareDatabaseException`. Introduced in Synapse v1.8.0.

View file

@ -366,9 +366,8 @@ def _upgrade_existing_database(
if duplicates:
# We don't support using the same file name in the same delta version.
raise PrepareDatabaseException(
"Found multiple delta files with the same name in v%d: %s",
v,
duplicates,
"Found multiple delta files with the same name in v%d: %s"
% (v, duplicates,)
)
# We sort to ensure that we apply the delta files in a consistent