[object Object]

← back to Exo

We shouldn't fail on an HTTPException in the tier-2 discovery system. (#1104)

f76d543d988b3e1d31f2d1c0a61ee887af073c36 · 2026-01-08 12:43:34 +0000 · Evan Quiney

## Motivation

Fixed a crash we found

## Changes

try/catch return None if we get an exception instead of crashing exo

## Test Plan

### Manual Testing
Exo launches. Couldn't repro the original case this arose.

Files touched

Diff

commit f76d543d988b3e1d31f2d1c0a61ee887af073c36
Author: Evan Quiney <evanev7@gmail.com>
Date:   Thu Jan 8 12:43:34 2026 +0000

    We shouldn't fail on an HTTPException in the tier-2 discovery system. (#1104)
    
    ## Motivation
    
    Fixed a crash we found
    
    ## Changes
    
    try/catch return None if we get an exception instead of crashing exo
    
    ## Test Plan
    
    ### Manual Testing
    Exo launches. Couldn't repro the original case this arose.
---
 src/exo/worker/utils/net_profile.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/exo/worker/utils/net_profile.py b/src/exo/worker/utils/net_profile.py
index b45891f4..b4deabb4 100644
--- a/src/exo/worker/utils/net_profile.py
+++ b/src/exo/worker/utils/net_profile.py
@@ -32,6 +32,8 @@ async def check_reachability(
             return NodeId(body) or None
         except OSError:
             return None
+        except http.client.HTTPException:
+            return None
         finally:
             connection.close()
 

← ea841aca local network check (#1103)  ·  back to Exo  ·  add a server for distributed testing in /tests until we work 56af61fa →