Dont break removing unexisten ipfs pin on local
This commit is contained in:
parent
cf7fff35ae
commit
35fb6a81f9
|
@ -98,8 +98,11 @@ def run(args, **kwargs):
|
||||||
'rm',
|
'rm',
|
||||||
previous_hash,
|
previous_hash,
|
||||||
]
|
]
|
||||||
subprocess.check_call(command)
|
result = subprocess.run(command)
|
||||||
logger.info('Previous hash unpinned on local')
|
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
|
# remove previous pin on server
|
||||||
data = urllib.parse.urlencode({
|
data = urllib.parse.urlencode({
|
||||||
|
|
Loading…
Reference in New Issue