From 57ab5ce1a21d5cd16bf9dd0485b5df89a3a7436e Mon Sep 17 00:00:00 2001 From: JOHN STETIC Date: Wed, 20 Feb 2019 20:43:00 -0500 Subject: [PATCH] Log URL error https://github.com/josegonzalez/python-github-backup/issues/105 --- bin/github-backup | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/github-backup b/bin/github-backup index 0245ba1..ec8596b 100755 --- a/bin/github-backup +++ b/bin/github-backup @@ -445,7 +445,8 @@ def _get_response(request, auth, template): except HTTPError as exc: errors, should_continue = _request_http_error(exc, auth, errors) # noqa r = exc - except URLError: + except URLError as e: + log_error(e.reason) should_continue = _request_url_error(template, retry_timeout) if not should_continue: raise