[mod] pep8

This commit is contained in:
Laurent Peuch 2016-12-02 23:50:22 +01:00 committed by Alexandre Aubin
parent c763b74fea
commit 801ceca32b

View file

@ -149,9 +149,9 @@ def tools_maindomain(auth, new_domain=None):
new_ssl_crt = "/etc/yunohost/certs/%s/crt.pem" % new_domain new_ssl_crt = "/etc/yunohost/certs/%s/crt.pem" % new_domain
try: try:
if os.path.exists(ssl_key) or os.path.lexists(ssl_key) : if os.path.exists(ssl_key) or os.path.lexists(ssl_key):
os.remove(ssl_key) os.remove(ssl_key)
if os.path.exists(ssl_crt) or os.path.lexists(ssl_crt) : if os.path.exists(ssl_crt) or os.path.lexists(ssl_crt):
os.remove(ssl_crt) os.remove(ssl_crt)
os.symlink(new_ssl_key, ssl_key) os.symlink(new_ssl_key, ssl_key)