Code Room
Code reviewMedium
Question
Review this code calling a service with a timeout.
What a strong answer looks like
Separate real bugs from style. Rank issues by severity, point at the root cause rather than the symptom, and suggest a concrete fix — specific and kind.
Learn the concepts
try: resp = client.get(url, timeout=2) return resp.dataexcept Timeout: return []Run or narrate your approach, then ask the coach.