Skip to content

Commit

Permalink
[server] Just skip any broken projects on the landing page, instead o…
Browse files Browse the repository at this point in the history
…f blocking the whole landing page
  • Loading branch information
nyalldawson committed Jan 29, 2021
1 parent 2c593a6 commit e4a4b83
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/server/services/landingpage/qgslandingpagehandlers.cpp
Expand Up @@ -69,7 +69,14 @@ json QgsLandingPageHandler::projectsData() const
const auto constProjectKeys { availableProjects.keys() };
for ( const auto &p : constProjectKeys )
{
j.push_back( QgsLandingPageUtils::projectInfo( availableProjects[ p ] ) );
try
{
j.push_back( QgsLandingPageUtils::projectInfo( availableProjects[ p ] ) );
}
catch ( QgsServerException & )
{
// skip broken projects!
}
}
return j;
}
Expand Down

0 comments on commit e4a4b83

Please sign in to comment.