Catch get_remote error

Merge:	releng/9.1.0
(cherry picked from commit 9cc3628f22b007d65afbb474f95075fde8b672e0)