mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
Epwing: Handle one more exception while open dictionary
This commit is contained in:
parent
0ab39a977c
commit
e057f61524
13
epwing.cc
13
epwing.cc
|
@ -964,8 +964,17 @@ vector< sptr< Dictionary::Class > > makeDictionaries(
|
|||
string mainDirectory = i->substr( 0, ndir );
|
||||
|
||||
Epwing::Book::EpwingBook dict;
|
||||
|
||||
int subBooksNumber = dict.setBook( mainDirectory );
|
||||
int subBooksNumber = 0;
|
||||
try
|
||||
{
|
||||
subBooksNumber = dict.setBook( mainDirectory );
|
||||
}
|
||||
catch( std::exception & e )
|
||||
{
|
||||
gdWarning( "Epwing dictionary initializing failed: %s, error: %s\n",
|
||||
mainDirectory.c_str(), e.what() );
|
||||
continue;
|
||||
}
|
||||
|
||||
for( int sb = 0; sb < subBooksNumber; sb++ )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue