Use `try..except` to handle network error

title says all