Changed throw => catch to an if test instead

This commit is contained in:
babrodtk
2015-09-02 13:49:08 +02:00
parent 273b1ecdda
commit c113c80e42
2 changed files with 5 additions and 5 deletions

View File

@@ -98,10 +98,10 @@ void VFPProdTable::init(DeckKeywordConstPtr table, std::shared_ptr<Opm::UnitSyst
//Check units used for this table
std::string units_string = "";
try {
if (header->getItem<VFPPROD::UNITS>()->hasValue(0)) {
units_string = header->getItem<VFPPROD::UNITS>()->getString(0);
}
catch (...) {
else {
//If units does not exist in record, the default value is the
//unit system of the deck itself: do nothing...
}