The migrate function throws RuntimeError depending on certain conditions, but you may also get RequestError if a request fails. I suppose Juan, you could catch those.