Skip to content

Commit

Permalink
Fix incorrect placeholder syntax in database prepartion code (matrix-…
Browse files Browse the repository at this point in the history
…org#7575)

We were using `logger` syntax which isn't supported by `Exception`s.
  • Loading branch information
anoadragon453 authored and phil-flex committed Jun 16, 2020
1 parent 628ed24 commit 76e2124
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions changelog.d/7575.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix str placeholders in an instance of `PrepareDatabaseException`. Introduced in Synapse v1.8.0.
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

0 comments on commit 76e2124

Please sign in to comment.