mirror of
https://github.com/certbot/certbot.git
synced 2026-07-28 08:45:22 +02:00
Do not try to remove temp dir if it wasn't created
This commit is contained in:
@@ -58,7 +58,8 @@ Alias /.well-known/acme-challenge {0}
|
||||
|
||||
def cleanup(self):
|
||||
"""Cleanup the challenge directory."""
|
||||
shutil.rmtree(self.challenge_dir, ignore_errors=True)
|
||||
if self.challenge_dir:
|
||||
shutil.rmtree(self.challenge_dir, ignore_errors=True)
|
||||
self.challenge_dir = None
|
||||
|
||||
def prepare_http01_modules(self):
|
||||
|
||||
Reference in New Issue
Block a user