mirror of
https://github.com/certbot/certbot.git
synced 2026-01-26 07:41:33 +03:00
Avoid deleting the workspace twice. (#7923)
This commit is contained in:
@@ -86,7 +86,8 @@ class ACMEServer(object):
|
||||
'alpine', 'rm', '-rf', '/workspace/boulder'])
|
||||
process.wait()
|
||||
finally:
|
||||
shutil.rmtree(self._workspace)
|
||||
if os.path.exists(self._workspace):
|
||||
shutil.rmtree(self._workspace)
|
||||
if self._stdout != sys.stdout:
|
||||
self._stdout.close()
|
||||
print('=> Test infrastructure stopped and cleaned up.')
|
||||
|
||||
Reference in New Issue
Block a user