mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 09:42: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
|
begin
|
||||||
response = rbox.execute "ipfs pin rm #{ipfs_hash}"
|
response = rbox.execute "ipfs pin rm #{ipfs_hash}"
|
||||||
output_array = response
|
output_array = response
|
||||||
|
rescue => e
|
||||||
|
return true if e.message =~ /indirect pins cannot be removed directly/
|
||||||
ensure
|
ensure
|
||||||
rbox.disconnect
|
rbox.disconnect
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue