From 1db8a7df0367f5fc57d75714040507d4c9596f57 Mon Sep 17 00:00:00 2001 From: Sanjin <102841251+duckduckgrayduck@users.noreply.github.com> Date: Wed, 13 Sep 2023 05:47:52 -0500 Subject: [PATCH] Update main.py --- main.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.py b/main.py index 96bc147..459fb89 100644 --- a/main.py +++ b/main.py @@ -49,8 +49,7 @@ def setup_credential_file(self): def validate(self): """Validate that we can run the OCR""" - print(self.get_document_count()) - if self.get_document_count() == 0: + if self.get_document_count() is None: self.set_message( "It looks like no documents were selected. Search for some or " "select them and run again."