Skip to content

Commit f74ea1e

Browse files
committed
Revert changes to error message.
+ Should fix TileDB-Py nightly failure.
1 parent 5285bb7 commit f74ea1e

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

tiledb/sm/array/array.cc

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -805,19 +805,6 @@ void Array::encryption_type(
805805

806806
shared_ptr<const Enumeration> Array::get_enumeration(
807807
const std::string& enumeration_name) {
808-
if (!is_open_) {
809-
throw ArrayException("Unable to load enumerations; Array is not open.");
810-
}
811-
812-
auto schema = opened_array_->array_schema_latest_ptr();
813-
if (!schema->has_enumeration(enumeration_name)) {
814-
throw ArrayException(
815-
"Unable to get enumeration; Enumeration '" + enumeration_name +
816-
"' does not exist.");
817-
} else if (schema->is_enumeration_loaded(enumeration_name)) {
818-
return schema->get_enumeration(enumeration_name);
819-
}
820-
821808
return get_enumerations({enumeration_name})[0];
822809
}
823810

0 commit comments

Comments
 (0)