Mathias Markl 7 years ago
parent
commit
de1bf2b0cb
  1. 1
      muk_web_preview_msoffice/controllers/main.py

1
muk_web_preview_msoffice/controllers/main.py

@ -88,6 +88,7 @@ class MSOfficeParserController(http.Controller):
except requests.exceptions.RequestException as exception: except requests.exceptions.RequestException as exception:
return self._make_error_response(exception.response.status_code, exception.response.reason or _("Unknown Error")) return self._make_error_response(exception.response.status_code, exception.response.reason or _("Unknown Error"))
try: try:
_logger.info(content_type)
response = self._make_pdf_response(pdfconv.converter.convert_binary2pdf(data, content_type, None, format='binary'), export_filename or uuid.uuid4()) response = self._make_pdf_response(pdfconv.converter.convert_binary2pdf(data, content_type, None, format='binary'), export_filename or uuid.uuid4())
pdf_cache[url] = response pdf_cache[url] = response
return response return response

Loading…
Cancel
Save