Skip to content

Commit

Permalink
Removing runtime_error exception from stporch init
Browse files Browse the repository at this point in the history
  • Loading branch information
divyachandralekha committed Jan 4, 2025
1 parent e05e244 commit b26766d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion orchagent/stporch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ StpOrch::StpOrch(DBConnector * db, DBConnector * stateDb, vector<string> &tableN
status = sai_switch_api->get_switch_attribute(gSwitchId, (uint32_t)attrs.size(), attrs.data());
if (status != SAI_STATUS_SUCCESS)
{
throw runtime_error("StpOrch initialization failure");
SWSS_LOG_NOTICE("StpOrch initialization failure");
return;
}

m_defaultStpId = attrs[0].value.oid;
Expand Down

0 comments on commit b26766d

Please sign in to comment.