https://www.openrtm.org/redmine/
https://www.openrtm.org/redmine/redmine/favicon.ico
2016-12-19T07:04:53Z
Redmine for OpenRTM-aist
OpenRTM-aist (Python) - バグ #3760: 意味のない例外処理を削除する
https://www.openrtm.org/redmine/issues/3760?journal_id=9027
2016-12-19T07:04:53Z
n-miyamoto
n-miyamoto@aist.go.jp
<ul><li><strong>進捗率</strong> を <i>0</i> から <i>50</i> に変更</li></ul><p>以下の部分が該当するため、修正を行った。</p>
<ul>
<li>SdoOrganization</li>
</ul>
<pre>
try:
guard = OpenRTM_aist.ScopedLock(self._org_mutex)
self._orgProperty = org_property
return True
except:
self.__rtcout.RTC_ERROR(OpenRTM_aist.Logger.print_exception())
raise SDOPackage.InternalError("add_organization_property()")
</pre>
<pre>
try:
self._varOwner = sdo
return True
except:
self.__rtcout.RTC_ERROR(OpenRTM_aist.Logger.print_exception())
raise SDOPackage.InternalError("set_owner()")
</pre>
<pre>
try:
return self._memberList
except:
self.__rtcout.RTC_ERROR(OpenRTM_aist.Logger.print_exception())
raise SDOPackage.InternalError("get_members()")
</pre>
<pre>
try:
self._memberList = sdos
return True
except:
self.__rtcout.RTC_ERROR(OpenRTM_aist.Logger.print_exception())
raise SDOPackage.InternalError("set_members()")
</pre>
<pre>
try:
self._dependency = dependency
return True
except:
self.__rtcout.RTC_ERROR(OpenRTM_aist.Logger.print_exception())
raise SDOPackage.InternalError("set_dependency(): Unknown.")
</pre>
<ul>
<li>SdoConfiguration</li>
</ul>
<pre>
try:
guard = OpenRTM_aist.ScopedLock(self._dprofile_mutex)
self._deviceProfile = dProfile
except:
self._rtcout.RTC_ERROR(OpenRTM_aist.Logger.print_exception())
raise SDOPackage.InternalError("Unknown Error")
</pre>
<pre>
try:
if not self._configsets.haveConfig(config_id):
self._rtcout.RTC_ERROR("No such ConfigurationSet")
raise SDOPackage.InternalError("No such ConfigurationSet")
except:
self._rtcout.RTC_ERROR(OpenRTM_aist.Logger.print_exception())
raise SDOPackage.InternalError("Unknown exception")
</pre>
<ul>
<li>RTObject</li>
</ul>
<pre>
try:
return self._portAdmin.getPortServiceList()
except:
self._rtcout.RTC_ERROR(OpenRTM_aist.Logger.print_exception())
</pre>
<pre>
try:
return self._sdoOwnedOrganizations
except:
self._rtcout.RTC_ERROR(OpenRTM_aist.Logger.print_exception())
raise SDOPackage.NotAvailable("NotAvailable: get_owned_organizations")
</pre>
<pre>
try:
return self._profile.instance_name
except:
self._rtcout.RTC_ERROR(OpenRTM_aist.Logger.print_exception())
raise SDOPackage.InternalError("get_sdo_id()")
</pre>
<pre>
try:
return self._profile.description
except:
self._rtcout.RTC_ERROR(OpenRTM_aist.Logger.print_exception())
raise SDOPackage.InternalError("get_sdo_type()")
</pre>
<pre>
try:
return self._SdoConfigImpl.getDeviceProfile()
except:
self._rtcout.RTC_ERROR(OpenRTM_aist.Logger.print_exception())
raise SDOPackage.InternalError("get_device_profile()")
</pre>
<pre>
try:
return self._sdoSvcProfiles
except:
self._rtcout.RTC_ERROR(OpenRTM_aist.Logger.print_exception())
raise SDOPackage.InternalError("get_service_profiles()")
</pre>
<pre>
try:
return self._sdoSvcProfiles[index].service
except:
self._rtcout.RTC_ERROR(OpenRTM_aist.Logger.print_exception())
raise SDOPackage.InternalError("get_service()")
</pre>
<pre>
try:
return self._SdoConfig
except:
self._rtcout.RTC_ERROR(OpenRTM_aist.Logger.print_exception())
raise SDOPackage.InternalError("get_configuration()")
</pre>
<pre>
try:
return self._sdoOrganizations
except:
self._rtcout.RTC_ERROR(OpenRTM_aist.Logger.print_exception())
raise SDOPackage.InternalError("get_organizations()")
</pre>
<pre>
try:
return self._sdoStatus
except:
self._rtcout.RTC_ERROR(OpenRTM_aist.Logger.print_exception())
raise SDOPackage.InternalError("get_status_list()")
</pre>
<ul>
<li>Timer</li>
</ul>
<pre>
try:
self.join()
except:
pass
</pre>
<ul>
<li>TimeValue</li>
</ul>
<pre>
try:
res = TimeValue()
except:
res = OpenRTM_aist.TimeValue()
</pre>
OpenRTM-aist (Python) - バグ #3760: 意味のない例外処理を削除する
https://www.openrtm.org/redmine/issues/3760?journal_id=9032
2016-12-20T10:07:09Z
n-miyamoto
n-miyamoto@aist.go.jp
<ul><li><strong>進捗率</strong> を <i>50</i> から <i>70</i> に変更</li></ul><p>以下の箇所の例外処理は無理やり変数を置き換えない限り網羅不可能なので削除</p>
<ul>
<li>SdoConfiguration</li>
</ul>
<pre>
try:
guard = OpenRTM_aist.ScopedLock(self._params_mutex)
param = copy.copy(self._parameters)
return param
except:
self._rtcout.RTC_ERROR(OpenRTM_aist.Logger.print_exception())
raise SDOPackage.InternalError("Configuration.get_configuration_parameters")
</pre>
<pre>
try:
config = SDOPackage.ConfigurationSet("","",[])
toConfigurationSet(config, configset)
return config
except:
self._rtcout.RTC_ERROR(OpenRTM_aist.Logger.print_exception())
raise SDOPackage.InternalError("Configuration::get_configuration_set()")
</pre>
<pre>
try:
OpenRTM_aist.CORBA_SeqUtil.push_back(self._organizations, org)
except:
self._rtcout.RTC_ERROR(OpenRTM_aist.Logger.print_exception())
raise SDOPackage.InternalError("Configuration.add_organization")
</pre>
<pre>
try:
OpenRTM_aist.CORBA_SeqUtil.erase(self._orgProperty.properties, index)
return True
except:
self.__rtcout.RTC_ERROR(OpenRTM_aist.Logger.print_exception())
raise SDOPackage.InternalError("remove_organization_property_value()")
</pre>
OpenRTM-aist (Python) - バグ #3760: 意味のない例外処理を削除する
https://www.openrtm.org/redmine/issues/3760?journal_id=9181
2017-02-01T00:18:08Z
n-miyamoto
n-miyamoto@aist.go.jp
<ul><li><strong>ステータス</strong> を <i>新規</i> から <i>解決</i> に変更</li><li><strong>進捗率</strong> を <i>70</i> から <i>100</i> に変更</li></ul>
OpenRTM-aist (Python) - バグ #3760: 意味のない例外処理を削除する
https://www.openrtm.org/redmine/issues/3760?journal_id=9635
2017-03-18T23:15:40Z
n-ando
Noriaki.Ando@gmail.com
<ul><li><strong>ステータス</strong> を <i>解決</i> から <i>終了</i> に変更</li></ul>