]> WPIA git - cassiopeia.git/blobdiff - src/apps/client.cpp
fix: catch another exception
[cassiopeia.git] / src / apps / client.cpp
index 71d41dbd2ccf98e3e6d17ed7b152dac69a44e793..96e5b67442bf94046cb01dba31e3a9c25f0fc56b 100644 (file)
@@ -110,8 +110,12 @@ int main( int argc, const char* argv[] ) {
             lastCRLCheck = current;
         }
 
-        std::shared_ptr<Job> job = jp->fetchJob();
-
+        std::shared_ptr<Job> job;
+       try {
+       job = jp->fetchJob();
+       } catch ( std::exception &e ){
+               logger::errorf ( "Exception while fetchJob: %s", e.what() );
+       }
         if( !job ) {
             logger::note( "Nothing to work on." );
             sleep( 5 );