summary refs log tree commit diff
path: root/synapse/config/repository.py
diff options
context:
space:
mode:
authorAmber H. Brown <hawkowl@atleastfornow.net>2019-08-14 02:05:11 +1000
committerAmber H. Brown <hawkowl@atleastfornow.net>2019-08-14 02:06:42 +1000
commit18bdac8ee4813005813a7021b1056ae83b44d6a2 (patch)
tree3093609a7105b887355edd55561edcb650e2cf4f /synapse/config/repository.py
parentMerge pull request #5809 from matrix-org/erikj/handle_pusher_stop (diff)
downloadsynapse-18bdac8ee4813005813a7021b1056ae83b44d6a2.tar.xz
fix config being a dict, actually
Diffstat (limited to 'synapse/config/repository.py')
-rw-r--r--synapse/config/repository.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/config/repository.py b/synapse/config/repository.py
index db39697e45..fdb1f246d0 100644
--- a/synapse/config/repository.py
+++ b/synapse/config/repository.py
@@ -93,7 +93,7 @@ class ContentRepositoryConfig(Config):
         # current worker app is the media repo.
         if (
             self.enable_media_repo is False
-            and config.worker_app != "synapse.app.media_repository"
+            and config.get("worker_app") != "synapse.app.media_repository"
         ):
             self.can_load_media_repo = False
             return