summary refs log tree commit diff
path: root/synapse/app
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-12-19 15:07:28 +0000
committerGitHub <noreply@github.com>2019-12-19 15:07:28 +0000
commit3d46124ad01990d37fa54c1599c28314dc5f5d30 (patch)
tree59ae282fde8cd3383d1ea3afe03af35cc4385eb8 /synapse/app
parentImprove diagnostics on database upgrade failure (#6570) (diff)
downloadsynapse-3d46124ad01990d37fa54c1599c28314dc5f5d30.tar.xz
Port some admin handlers to async/await (#6559)
Diffstat (limited to 'synapse/app')
-rw-r--r--synapse/app/admin_cmd.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/synapse/app/admin_cmd.py b/synapse/app/admin_cmd.py
index 51a909419f..8e36bc57d3 100644
--- a/synapse/app/admin_cmd.py
+++ b/synapse/app/admin_cmd.py
@@ -104,8 +104,10 @@ def export_data_command(hs, args):
     user_id = args.user_id
     directory = args.output_directory
 
-    res = yield hs.get_handlers().admin_handler.export_user_data(
-        user_id, FileExfiltrationWriter(user_id, directory=directory)
+    res = yield defer.ensureDeferred(
+        hs.get_handlers().admin_handler.export_user_data(
+            user_id, FileExfiltrationWriter(user_id, directory=directory)
+        )
     )
     print(res)