Skip to content
Snippets Groups Projects
Unverified Commit 0a6e837a authored by Andrew Morgan's avatar Andrew Morgan Committed by GitHub
Browse files

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

We were using `logger` syntax which isn't supported by `Exception`s.
parent 98483890
No related branches found
No related tags found
No related merge requests found
Fix str placeholders in an instance of `PrepareDatabaseException`. Introduced in Synapse v1.8.0.
...@@ -366,9 +366,8 @@ def _upgrade_existing_database( ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment