mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
rescue for missing pin
This commit is contained in:
parent
8aa0061ab4
commit
ac0afbd2e9
1 changed files with 2 additions and 0 deletions
|
@ -27,6 +27,8 @@ class Archive < Sequel::Model
|
|||
begin
|
||||
response = rbox.execute "ipfs pin rm #{ipfs_hash}"
|
||||
output_array = response
|
||||
rescue => e
|
||||
return true if e.message =~ /indirect pins cannot be removed directly/
|
||||
ensure
|
||||
rbox.disconnect
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue