Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Fix incorrect placeholder syntax in database prepartion code #7575

Merged
merged 3 commits into from
May 27, 2020
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/7575.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix str placeholders in an instance of `PrepareDatabaseException`.
5 changes: 2 additions & 3 deletions synapse/storage/prepare_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down