mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Add -f to rm
This commit is contained in:
parent
9657387746
commit
e6f1845448
1 changed files with 4 additions and 4 deletions
|
@ -157,12 +157,12 @@ def dyndns_subscribe(operation_logger, subscribe_host="dyndns.yunohost.org", dom
|
|||
try:
|
||||
r = requests.post('https://%s/key/%s?key_algo=hmac-sha512' % (subscribe_host, base64.b64encode(key)), data={'subdomain': domain}, timeout=30)
|
||||
except requests.ConnectionError:
|
||||
os.system("rm %s" % private_file)
|
||||
os.system("rm %s" % key_file)
|
||||
os.system("rm -f %s" % private_file)
|
||||
os.system("rm -f %s" % key_file)
|
||||
raise YunohostError('no_internet_connection')
|
||||
if r.status_code != 201:
|
||||
os.system("rm %s" % private_file)
|
||||
os.system("rm %s" % key_file)
|
||||
os.system("rm -f %s" % private_file)
|
||||
os.system("rm -f %s" % key_file)
|
||||
try:
|
||||
error = json.loads(r.text)['error']
|
||||
except:
|
||||
|
|
Loading…
Add table
Reference in a new issue