diff --git a/Gemfile.lock b/Gemfile.lock index 5d06f19..d40faa3 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - umbrellio-utils (1.14.2) + umbrellio-utils (1.14.3) memery (~> 1) GEM diff --git a/lib/umbrellio_utils/large_object.rb b/lib/umbrellio_utils/large_object.rb index 12df8d7..26a0b73 100644 --- a/lib/umbrellio_utils/large_object.rb +++ b/lib/umbrellio_utils/large_object.rb @@ -41,9 +41,7 @@ def read(*) end def delete! - run(:lo_unlink, oid) - rescue Sequel::DatabaseError - # Ignored + run(:lo_unlink, oid) if exists? end def exists? diff --git a/lib/umbrellio_utils/version.rb b/lib/umbrellio_utils/version.rb index e8905df..f5b09cb 100644 --- a/lib/umbrellio_utils/version.rb +++ b/lib/umbrellio_utils/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module UmbrellioUtils - VERSION = "1.14.2" + VERSION = "1.14.3" end