File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -378,12 +378,23 @@ async def _check_traefik_static_conf_ready():
378
378
# unexpected
379
379
self .log .error (f"Error checking for traefik static configuration { e } " )
380
380
return False
381
- except ( OSError , ssl .SSLError ) as e :
381
+ except ssl .SSLError as e :
382
382
# Can occur if SSL isn't set up yet
383
383
self .log .warning (
384
384
f"SSL Error checking for traefik static configuration: { e } "
385
385
)
386
386
return False
387
+ except OSError as e :
388
+ # OSError can occur during SSL setup,
389
+ # e.g. if socket is listening, but SSL isn't ready
390
+ if self .traefik_api_url .startswith ("https:" ):
391
+ self .log .warning (
392
+ f"Error checking for traefik static configuration: { e } "
393
+ )
394
+ return False
395
+ else :
396
+ # other OSErrors should be fatal
397
+ raise
387
398
388
399
return True
389
400
You can’t perform that action at this time.
0 commit comments