Catch generic std::exception as there can be thrown different types in case of differ...
[bpdyndnsd] / src / serviceholder.cpp
index 7f7968f..e4a484b 100644 (file)
@@ -130,7 +130,7 @@ int Serviceholder::deserialize_services()
             boost::archive::text_iarchive ia(ifs);
             ia >> _service_container >> _ip_addr_helper;
         }
-        catch( const boost::archive::archive_exception& e )
+        catch( const std::exception& e )
         {
             // There is a corrupted object file, continue without recovering old Services' state.
             Log->print_exception_deserialize(e.what());