Python 无法转换<;字段>;出类拔萃
在从JIRA rest API将字段导入excel时,我经常遇到这个问题 我的输出结果是Python 无法转换<;字段>;出类拔萃,python,excel,error-handling,openpyxl,jira-rest-api,Python,Excel,Error Handling,Openpyxl,Jira Rest Api,在从JIRA rest API将字段导入excel时,我经常遇到这个问题 我的输出结果是 [None, None, None, None, <JIRA Resolution: name='Fixed', id='1'>, None, None, <JIRA Resolution: name='Fixed', id='1'>, None, None, None, <JIRA Resolution: name='Done', id='10000'&
[None,
None,
None,
None,
<JIRA Resolution: name='Fixed', id='1'>,
None,
None,
<JIRA Resolution: name='Fixed', id='1'>,
None,
None,
None,
<JIRA Resolution: name='Done', id='10000'>,
<JIRA Resolution: name='Done', id='10000'>,
<JIRA Resolution: name='Done', id='10000'>,
<JIRA Resolution: name='Done', id='10000'>,
错误是
217 elif value is not None:
--> 218 raise ValueError("Cannot convert {0!r} to Excel".format(value))
219
220 self._value = value
ValueError: Cannot convert <JIRA Resolution: name='Fixed', id='1'> to Excel
217 elif值不是无:
-->218 raise VALUERROR(“无法将{0!r}转换为Excel”。格式(值))
219
220自身价值=价值
ValueError:无法转换为Excel
217 elif value is not None:
--> 218 raise ValueError("Cannot convert {0!r} to Excel".format(value))
219
220 self._value = value
ValueError: Cannot convert <JIRA Resolution: name='Fixed', id='1'> to Excel