mirror of
https://github.com/certbot/certbot.git
synced 2026-07-28 08:05:31 +02:00
Linter fixes
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
"""Let's Encrypt user-supplied configuration."""
|
||||
import os
|
||||
import urlparse
|
||||
import re
|
||||
|
||||
import zope.interface
|
||||
|
||||
|
||||
@@ -313,4 +313,4 @@ def check_domain_sanity(domain):
|
||||
# first and last char is not "-"
|
||||
fqdn = re.compile("^((?!-)[A-Za-z0-9-]{1,63}(?<!-)\\.)+[A-Za-z]{2,63}$")
|
||||
if not fqdn.match(domain):
|
||||
raise errors.ConfigurationError("Requested domain is not a FQDN")
|
||||
raise errors.ConfigurationError("Requested domain is not a FQDN")
|
||||
|
||||
Reference in New Issue
Block a user