fee975a raise a proper error when health checks failed

Authored and Committed by mjia 6 years ago
    raise a proper error when health checks failed
    
    Using assert statements is not encourged in production, because they
    will get stripped out of .pyo files and not run. Instead, we should
    raise RuntimeError.
    
        
file modified
+5 -0
file modified
+2 -1