lib/google/cloud/automl/v1beta1/data_stats_pb.rb in google-cloud-automl-v1beta1-0.10.1 vs lib/google/cloud/automl/v1beta1/data_stats_pb.rb in google-cloud-automl-v1beta1-0.10.2
- old
+ new
@@ -9,10 +9,10 @@
pool = Google::Protobuf::DescriptorPool.generated_pool
begin
pool.add_serialized_file(descriptor_data)
-rescue TypeError => e
+rescue TypeError
# Compatibility code: will be removed in the next major version.
require 'google/protobuf/descriptor_pb'
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
parsed.clear_dependency
serialized = parsed.class.encode(parsed)