summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--synapse/storage/engines/__init__.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/synapse/storage/engines/__init__.py b/synapse/storage/engines/__init__.py
index f661e4803c..bd3c8f9452 100644
--- a/synapse/storage/engines/__init__.py
+++ b/synapse/storage/engines/__init__.py
@@ -14,8 +14,6 @@
 # limitations under the License.
 
 from ._base import IncorrectDatabaseSetup
-assert IncorrectDatabaseSetup  # Appease PEP8
-
 from .postgres import PostgresEngine
 from .sqlite3 import Sqlite3Engine
 
@@ -38,3 +36,6 @@ def create_engine(name):
     raise RuntimeError(
         "Unsupported database engine '%s'" % (name,)
     )
+
+
+__all__ = ["create_engine", "IncorrectDatabaseSetup"]