Browse Source

fix "TypeError: '<' not supported between instances of 'Emu' and 'Non… (#9209)

…eType'"

### What problem does this PR solve?

fix "TypeError: '<' not supported between instances of 'Emu' and
'NoneType'"

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
tags/v0.20.1
Jay Xu 2 months ago
parent
commit
6ad8b54754
No account linked to committer's email address
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      deepdoc/parser/ppt_parser.py

+ 2
- 2
deepdoc/parser/ppt_parser.py View File

@@ -87,7 +87,7 @@ class RAGFlowPptParser:
break
texts = []
for shape in sorted(
slide.shapes, key=lambda x: ((x.top if x.top is not None else 0) // 10, x.left)):
slide.shapes, key=lambda x: ((x.top if x.top is not None else 0) // 10, x.left if x.left is not None else 0)):
try:
txt = self.__extract(shape)
if txt:
@@ -96,4 +96,4 @@ class RAGFlowPptParser:
logging.exception(e)
txts.append("\n".join(texts))

return txts
return txts

Loading…
Cancel
Save