diff options
author | Erik Johnston <erik@matrix.org> | 2019-12-19 15:07:28 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-19 15:07:28 +0000 |
commit | 3d46124ad01990d37fa54c1599c28314dc5f5d30 (patch) | |
tree | 59ae282fde8cd3383d1ea3afe03af35cc4385eb8 /synapse/app/admin_cmd.py | |
parent | Improve diagnostics on database upgrade failure (#6570) (diff) | |
download | synapse-3d46124ad01990d37fa54c1599c28314dc5f5d30.tar.xz |
Port some admin handlers to async/await (#6559)
Diffstat (limited to 'synapse/app/admin_cmd.py')
-rw-r--r-- | synapse/app/admin_cmd.py | 6 |
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) |