Dont break removing unexisten ipfs pin on local

This commit is contained in:
Ales (Shagi) Zabala Alava 2021-09-27 10:36:22 +02:00
parent cf7fff35ae
commit 35fb6a81f9
1 changed files with 5 additions and 2 deletions

View File

@ -98,7 +98,10 @@ def run(args, **kwargs):
'rm',
previous_hash,
]
subprocess.check_call(command)
result = subprocess.run(command)
if result.returncode != 0:
logger.info('Previous {} hash not removed: {}'.format(previous_hash, result.stdout))
else:
logger.info('Previous hash unpinned on local')
# remove previous pin on server