mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix #3552: linkcheck raises UnboundLocalError
This commit is contained in:
parent
ada9aa6b94
commit
2dae11aa68
1
CHANGES
1
CHANGES
@ -67,6 +67,7 @@ Bugs fixed
|
|||||||
* #3450:   is appeared in EPUB docs
|
* #3450:   is appeared in EPUB docs
|
||||||
* #3418: Search button is misaligned in nature and pyramid theme
|
* #3418: Search button is misaligned in nature and pyramid theme
|
||||||
* #3421: Could not translate a caption of tables
|
* #3421: Could not translate a caption of tables
|
||||||
|
* #3552: linkcheck raises UnboundLocalError
|
||||||
|
|
||||||
Release 1.5.2 (released Jan 22, 2017)
|
Release 1.5.2 (released Jan 22, 2017)
|
||||||
=====================================
|
=====================================
|
||||||
|
@ -167,7 +167,9 @@ class CheckExternalLinksBuilder(Builder):
|
|||||||
# history contains any redirects, get last
|
# history contains any redirects, get last
|
||||||
if response.history:
|
if response.history:
|
||||||
code = response.history[-1].status_code
|
code = response.history[-1].status_code
|
||||||
return 'redirected', new_url, code
|
return 'redirected', new_url, code
|
||||||
|
else:
|
||||||
|
return 'redirected', new_url, 0
|
||||||
|
|
||||||
def check():
|
def check():
|
||||||
# check for various conditions without bothering the network
|
# check for various conditions without bothering the network
|
||||||
|
Loading…
Reference in New Issue
Block a user