summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorAndrew Morgan <1342360+anoadragon453@users.noreply.github.com>2020-05-27 16:26:59 +0100
committerGitHub <noreply@github.com>2020-05-27 16:26:59 +0100
commit0a6e837aaadec0342f31f29c48800f5ce5e3531b (patch)
treea9892c16199a119ca0c2f3ff6ba1fcfeb5601a4a /synapse
parentMerge branch 'develop' of github.com:matrix-org/synapse into develop (diff)
downloadsynapse-0a6e837aaadec0342f31f29c48800f5ce5e3531b.tar.xz
Fix incorrect placeholder syntax in database prepartion code (#7575)
We were using `logger` syntax which isn't supported by `Exception`s.
Diffstat (limited to 'synapse')
-rw-r--r--synapse/storage/prepare_database.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/synapse/storage/prepare_database.py b/synapse/storage/prepare_database.py
index 9afc145340..b95434f031 100644
--- a/synapse/storage/prepare_database.py
+++ b/synapse/storage/prepare_database.py
@@ -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