diff --git a/OTcerts.py b/OTcerts.py index bf5e0dc..b9c4e92 100644 --- a/OTcerts.py +++ b/OTcerts.py @@ -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)