mirror of
https://github.com/jsvine/pdfplumber.git
synced 2026-08-30 17:10:23 +08:00
Return None if extracting_text from char-less obj
... instead of raising exception
This commit is contained in:
+1
-1
@@ -49,7 +49,7 @@ def collate_line(line_chars, tolerance=0):
|
||||
|
||||
def extract_text(chars, x_tolerance=0, y_tolerance=0):
|
||||
if len(chars) == 0:
|
||||
raise Exception("List of chars is empty.")
|
||||
return None
|
||||
|
||||
get_0 = itemgetter(0)
|
||||
get_1 = itemgetter(1)
|
||||
|
||||
Reference in New Issue
Block a user