Fix small issues detected by codacy

This commit is contained in:
VirtuBox
2019-10-28 09:22:04 +01:00
parent 45252fdd1b
commit c2d27f1480
4 changed files with 6 additions and 10 deletions

View File

@@ -148,9 +148,8 @@ class WOAcme:
self, "You have to set the "
"proper DNS record for your domain", False)
return False
else:
Log.debug(self, "DNS record are properly set")
return True
Log.debug(self, "DNS record are properly set")
return True
def cert_check(self, wo_domain_name):
"""Check certificate existance with acme.sh and return Boolean"""

View File

@@ -2,7 +2,7 @@
import os
class WODomain():
class WODomain:
"""WordOps domain validation utilities"""
def validate(self, url):
@@ -24,7 +24,6 @@ class WODomain():
return final_domain
return domain_name
def getlevel(self, domain):
"""
Returns the domain type : domain, subdomain and the root domain