Commit 0e6c0963 authored by Yusei Tahara's avatar Yusei Tahara

Raise exception when base data is empty.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18299 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 65a49076
......@@ -490,7 +490,7 @@ class OOoDocument(File, ConversionCacheMixin):
"""
data = self.getBaseData()
if data in ('', None):
return
raise ValueError, "OOoDocument: BaseData is empty. Document is not converted yet."
server_proxy = self._mkProxy()
response_code, response_dict, response_message = \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment