mirror of
https://github.com/certbot/certbot.git
synced 2026-08-01 19:02:52 +02:00
That shouldn't be in the try block
This commit is contained in:
@@ -153,13 +153,13 @@ binary for temporary key/certificate generation.""".replace("\n", "")
|
|||||||
ct=response.CONTENT_TYPE, port=port)
|
ct=response.CONTENT_TYPE, port=port)
|
||||||
if self.conf("test-mode"):
|
if self.conf("test-mode"):
|
||||||
logger.debug("Test mode. Executing the manual command: %s", command)
|
logger.debug("Test mode. Executing the manual command: %s", command)
|
||||||
|
# sh shipped with OS X does't support echo -n
|
||||||
|
if sys.platform == "darwin":
|
||||||
|
executable = "/bin/bash"
|
||||||
|
else:
|
||||||
|
executable = "/bin/sh"
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# sh shipped with OS X does't support echo -n
|
|
||||||
if sys.platform == "darwin":
|
|
||||||
executable = "/bin/bash"
|
|
||||||
else:
|
|
||||||
executable = "/bin/sh"
|
|
||||||
|
|
||||||
self._httpd = subprocess.Popen(
|
self._httpd = subprocess.Popen(
|
||||||
command,
|
command,
|
||||||
# don't care about setting stdout and stderr,
|
# don't care about setting stdout and stderr,
|
||||||
|
|||||||
Reference in New Issue
Block a user