python-openxml / python-docx

Create and modify Word documents with Python
MIT License
4.38k stars 1.08k forks source link

TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType' #1369

Open TerminalMACS opened 3 months ago

TerminalMACS commented 3 months ago

我i在使用word转换html的时候,碰到了以上错误,发现是因为用int去强制转换了一个None,建议如果出现为None,将其默认为'0' image image