File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
test/functional/test_framework Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -225,9 +225,6 @@ def wait_for_rpc_connection(self):
225
225
self .rpc_connected = True
226
226
self .url = self .rpc .url
227
227
return
228
- except IOError as e :
229
- if e .errno != errno .ECONNREFUSED : # Port not yet open?
230
- raise # unknown IO error
231
228
except JSONRPCException as e : # Initialization phase
232
229
# -28 RPC in warmup
233
230
# -342 Service unavailable, RPC server started but is shutting down due to error
@@ -237,6 +234,9 @@ def wait_for_rpc_connection(self):
237
234
# This might happen when the RPC server is in warmup, but shut down before the call to getblockcount
238
235
# succeeds. Try again to properly raise the FailedToStartError
239
236
pass
237
+ except OSError as e :
238
+ if e .errno != errno .ECONNREFUSED : # Port not yet open?
239
+ raise # unknown OS error
240
240
except ValueError as e : # cookie file not found and no rpcuser or rpcassword. bitcoind still starting
241
241
if "No RPC credentials" not in str (e ):
242
242
raise
You can’t perform that action at this time.
0 commit comments