File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -228,7 +228,7 @@ def __supervisord(self):
228
228
if not self .__supervisord_is_running ():
229
229
# any time that supervisord is not running, let's rewrite supervisord.conf
230
230
open (self .supervisord_conf_path , "w" ).write (SUPERVISORD_CONF_TEMPLATE .format (** format_vars ))
231
- self .__supervisord_popen = subprocess .Popen (supervisord_cmd , env = os .environ , stderr = subprocess . PIPE )
231
+ self .__supervisord_popen = subprocess .Popen (supervisord_cmd , env = os .environ )
232
232
233
233
rc = self .__supervisord_popen .poll ()
234
234
if rc :
@@ -257,7 +257,10 @@ def _check_path_length(self):
257
257
self ._handle_socket_path_error ()
258
258
finally :
259
259
sock .close ()
260
- os .unlink (bind_path )
260
+ try :
261
+ os .unlink (bind_path )
262
+ except FileNotFoundError as e2 :
263
+ pass # There's nothing to unlink. File may not exists during testing.
261
264
262
265
def _handle_socket_path_error (self ):
263
266
msg = f"""
You can’t perform that action at this time.
0 commit comments