fix: actually skip when certificate is still valid
This commit is contained in:
parent
5e665eb9fb
commit
0dca02cee6
2 changed files with 2 additions and 2 deletions
|
@ -39,7 +39,7 @@ def main() -> None:
|
||||||
delta = date - datetime.now()
|
delta = date - datetime.now()
|
||||||
if delta.days > 30:
|
if delta.days > 30:
|
||||||
log.info(f'cert for {domain} expires in more than a month ({delta.days} days), skipping')
|
log.info(f'cert for {domain} expires in more than a month ({delta.days} days), skipping')
|
||||||
# continue
|
continue
|
||||||
|
|
||||||
log.info(f'getting cert for {domain}')
|
log.info(f'getting cert for {domain}')
|
||||||
env = os.environ.copy()
|
env = os.environ.copy()
|
||||||
|
|
|
@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "nyacme"
|
name = "nyacme"
|
||||||
version = "0.1.7"
|
version = "0.1.8"
|
||||||
authors = [
|
authors = [
|
||||||
{name = "Patrycja Rosa", email = "python@ptrcnull.me"},
|
{name = "Patrycja Rosa", email = "python@ptrcnull.me"},
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue