From b103ce9f92012db9d0bc9164b76705633c3c453a Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 11 Sep 2019 14:34:25 +0200 Subject: Serialization - Import/Export: manage put an release of locks --- ishtar_common/views_item.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ishtar_common/views_item.py') diff --git a/ishtar_common/views_item.py b/ishtar_common/views_item.py index 2c4cc1a55..6c10285db 100644 --- a/ishtar_common/views_item.py +++ b/ishtar_common/views_item.py @@ -282,7 +282,8 @@ def show_item(model, name, extra_dct=None, model_for_perms=None): pandoc_args = ["pandoc", "-f", "html", "-t", "odt", "-o", odt.name, html_source.name] try: - subprocess.check_call(pandoc_args) + subprocess.check_call(pandoc_args, stdout=subprocess.DEVNULL, + stderr=subprocess.DEVNULL) except subprocess.CalledProcessError: return HttpResponse(content, content_type="application/xhtml") -- cgit v1.2.3