You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "/miniconda/envs/flecom/lib/python3.6/site-packages/flask/app.py", line 1725, in make_response
raise ValueError('View function did not return a response')
ValueError: View function did not return a response
I stepped into make_response_from_records(...) and found this code which returns None:
# python3.6/site-packages/pyexcel_webio/__init__.py
def dummy_func(content, content_type=None, status=200, file_name=None):
return None
__excel_response_func__ = dummy_func
def _make_response(content, file_type,
status=200, file_name=None):
if hasattr(content, "read"):
content = content.read()
if file_name:
if not file_name.endswith(file_type):
file_name = "%s.%s" % (file_name, file_type)
return __excel_response_func__(
content,
content_type=FILE_TYPE_MIME_TABLE[file_type],
status=status, file_name=file_name)
The text was updated successfully, but these errors were encountered:
Package version:
In my code:
return make_response_from_records(records, file_type='xls', file_name=fn)
This raises an exception:
I stepped into
make_response_from_records(...)
and found this code which returnsNone
:The text was updated successfully, but these errors were encountered: