# HG changeset patch # User Sebastien Jodogne # Date 1706603095 -3600 # Node ID d7c24c9c94489a1913be6d69607224ac54b83b53 # Parent 2c5eb1ef26a0e6989eaf2440854ba7a9314b68f7 removed useless try/catch diff -r 2c5eb1ef26a0 -r d7c24c9c9448 OrthancServer/Plugins/Engine/OrthancPluginDatabaseV4.cpp --- a/OrthancServer/Plugins/Engine/OrthancPluginDatabaseV4.cpp Tue Jan 30 09:21:41 2024 +0100 +++ b/OrthancServer/Plugins/Engine/OrthancPluginDatabaseV4.cpp Tue Jan 30 09:24:55 2024 +0100 @@ -1469,19 +1469,11 @@ } else { - try - { - DatabasePluginMessages::DatabaseRequest request; - DatabasePluginMessages::DatabaseResponse response; + DatabasePluginMessages::DatabaseRequest request; + DatabasePluginMessages::DatabaseResponse response; - ExecuteDatabase(response, *this, DatabasePluginMessages::OPERATION_MEASURE_LATENCY, request); - return response.measure_latency().latency_us(); - - } - catch (OrthancException& e) - { - throw; - } + ExecuteDatabase(response, *this, DatabasePluginMessages::OPERATION_MEASURE_LATENCY, request); + return response.measure_latency().latency_us(); } }