summaryrefslogtreecommitdiffstats
path: root/monitor/fan.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'monitor/fan.cpp')
-rw-r--r--monitor/fan.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/monitor/fan.cpp b/monitor/fan.cpp
index 17f5812..195317c 100644
--- a/monitor/fan.cpp
+++ b/monitor/fan.cpp
@@ -199,15 +199,7 @@ void Fan::updateInventory(bool functional)
ObjectMap objectMap = getObjectMap(functional);
std::string service;
- try
- {
- service = phosphor::fan::util::getInvService(_bus);
- }
- catch (const std::runtime_error& err)
- {
- log<level::ERR>(err.what());
- return;
- }
+ service = phosphor::fan::util::getInvService(_bus);
auto msg = _bus.new_method_call(service.c_str(),
INVENTORY_PATH,
OpenPOWER on IntegriCloud