mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04: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:
parent
98483890ee
commit
0a6e837aaa
1
changelog.d/7575.bugfix
Normal file
1
changelog.d/7575.bugfix
Normal file
@ -0,0 +1 @@
|
|||||||
|
Fix str placeholders in an instance of `PrepareDatabaseException`. Introduced in Synapse v1.8.0.
|
@ -366,9 +366,8 @@ def _upgrade_existing_database(
|
|||||||
if duplicates:
|
if duplicates:
|
||||||
# We don't support using the same file name in the same delta version.
|
# We don't support using the same file name in the same delta version.
|
||||||
raise PrepareDatabaseException(
|
raise PrepareDatabaseException(
|
||||||
"Found multiple delta files with the same name in v%d: %s",
|
"Found multiple delta files with the same name in v%d: %s"
|
||||||
v,
|
% (v, duplicates,)
|
||||||
duplicates,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# We sort to ensure that we apply the delta files in a consistent
|
# We sort to ensure that we apply the delta files in a consistent
|
||||||
|
Loading…
Reference in New Issue
Block a user