Microservices - Resilience Patterns
Identify the bug in this circuit breaker pseudocode:
if breaker.state == 'OPEN':
call_service()
else:
try:
call_service()
except:
breaker.state = 'OPEN'