summary refs log tree commit diff
path: root/synapse/storage/schema
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2016-09-08 17:44:21 +0100
committerMark Haines <mark.haines@matrix.org>2016-09-08 17:44:21 +0100
commit43b77c5d97a3119296c0f26030140b28e8d25f04 (patch)
tree4a6e338d09169f51e078398ce92c1abc54f7a665 /synapse/storage/schema
parentAdd a stub run_upgrade (diff)
downloadsynapse-43b77c5d97a3119296c0f26030140b28e8d25f04.tar.xz
Only catch databas errors
Diffstat (limited to 'synapse/storage/schema')
-rw-r--r--synapse/storage/schema/delta/35/device_outbox_again.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/schema/delta/35/device_outbox_again.py b/synapse/storage/schema/delta/35/device_outbox_again.py
index d6d2260393..5f950a4a8a 100644
--- a/synapse/storage/schema/delta/35/device_outbox_again.py
+++ b/synapse/storage/schema/delta/35/device_outbox_again.py
@@ -26,7 +26,7 @@ def run_create(cur, database_engine, *args, **kwargs):
         synapse.storage.prepare_database.executescript(
             cur, os.path.join(delta_dir, "34", "device_outbox.sql")
         )
-    except:
+    except database_engine.module.DatabaseError:
         pass