Skip to content

Commit 63e458b

Browse files
authored
Merge pull request josegonzalez#106 from jstetic/master
Log URL error
2 parents d148f9b + 57ab5ce commit 63e458b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bin/github-backup

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,8 @@ def _get_response(request, auth, template):
445445
except HTTPError as exc:
446446
errors, should_continue = _request_http_error(exc, auth, errors) # noqa
447447
r = exc
448-
except URLError:
448+
except URLError as e:
449+
log_error(e.reason)
449450
should_continue = _request_url_error(template, retry_timeout)
450451
if not should_continue:
451452
raise

0 commit comments

Comments
 (0)