Fixed Exception creating link

This commit is contained in:
jigen 2018-06-10 23:05:59 +02:00
parent 801f30f5c0
commit f6e6b20587

View file

@ -159,7 +159,7 @@ def acme_request(config, domain_name, acme_test='DNS-01', dryrun=False, domains_
def symlink_force(target, link_name):
try:
os.symlink(target, link_name)
except e:
except Exception as e:
if e.errno == errno.EEXIST:
os.remove(link_name)
os.symlink(target, link_name)