commit | c35150f2f14fa605b3cdd7c6b657d48efccc3cb4 | [log] [tgz] |
---|---|---|
author | Bashir Sadjad <bashir.sadjad@gmail.com> | Mon Jun 25 11:46:09 2018 -0400 |
committer | Thea Flowers <theaflowers@google.com> | Mon Jun 25 08:46:09 2018 -0700 |
tree | 8b6da5f3414bd7a32b68467842aad54a8b844a85 | |
parent | b0b1c1d4a68ae0a40d64c2570425a355362803ba [diff] [blame] |
Catch ServerNotFoundError to retry the request (#532)
diff --git a/googleapiclient/http.py b/googleapiclient/http.py index a7f14b7..cc622a2 100644 --- a/googleapiclient/http.py +++ b/googleapiclient/http.py
@@ -173,6 +173,8 @@ 'WSAETIMEDOUT', 'ETIMEDOUT', 'EPIPE', 'ECONNABORTED'}: raise exception = socket_error + except httplib2.ServerNotFoundError as server_not_found_error: + exception = server_not_found_error if exception: if retry_num == num_retries: