`ExcelDataNode._read_as` 中的 `UnboundLocalError` 会掩盖底层 I/O 和文件未找到异常
作者: codeCraft-Ritik创建于 2026年9月22日更新于 2026年9月22日
taipy/core/data/excel.py lines 170-175 and 224-225
def _read_as(self, path: str): try: properties = self.properties excel_file = load_workbook(path, read_only=True) # <--- If this raises, excel_file is unbound ... finally: excel_file.close() # <--- UnboundLocalError raised here!
内容来源: Avaiga/taipy