Fixed Exception creating link
This commit is contained in:
parent
801f30f5c0
commit
f6e6b20587
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue