Skip to content

Commit

Permalink
Use not instead of len
Browse files Browse the repository at this point in the history
  • Loading branch information
chezou committed Nov 20, 2023
1 parent a3a09f5 commit 3c0249b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tabula/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ def read_pdf(
if temporary:
os.unlink(path)

if len(output) == 0:
if not output:
logger.warning("The output file is empty.")
return []

Expand Down

0 comments on commit 3c0249b

Please sign in to comment.