Check if no cards were extracted from the PDF's.

master
Pacman Ghost 7 years ago
parent 127019d761
commit b9b273118b
  1. 2
      startup_widget.py

@ -41,6 +41,8 @@ class AnalyzeThread( QThread ) :
on_error = self.on_error ,
)
cards = self.parser.parse( self.cards_dir )
if not cards :
raise RuntimeError( "No cards were found." )
db.open_database( self.db_fname , True )
db.add_cards( cards )
except Exception as ex :

Loading…
Cancel
Save