That shouldn't be in the try block

This commit is contained in:
Brandon Kreisel
2015-10-04 20:13:07 -04:00
parent c9e28309ed
commit 2737c3299d
+6 -6
View File
@@ -153,13 +153,13 @@ binary for temporary key/certificate generation.""".replace("\n", "")
ct=response.CONTENT_TYPE, port=port)
if self.conf("test-mode"):
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:
# 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(
command,
# don't care about setting stdout and stderr,