🐛 PMGR: Don't use jsonify outside flask context

We've moved `_command_install_archive` into its own thread, so we
must return results instead of jsonify'ing them.

As discovered through #3825
This commit is contained in:
Gina Häußge committed 2020-11-18 13:07:58 +01:00
1 parent c30673fac0
commit 84fb97f82a
1 file changed
+1 -1
@@ -789,7 +789,7 @@ class PluginManagerPlugin(
"for generated output",
}
self._send_result_notification("install", result)
return jsonify(result)
return result
# The final output of a pip install command looks something like this:
#