jenkins-bot merged this change.
[FIX] reflinks: handle FatalServerError & Server504Error
reflinks.py crashes when FatalServerError & Server504Error occurs.
This patch add error handling to ignore both of them while checking
for reference link title
Bug: T180308
Change-Id: Ief433c2ab46376f430b01a51bc1820186bb61077
---
M scripts/reflinks.py
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/scripts/reflinks.py b/scripts/reflinks.py
index 1d4d69f..0d1df4a 100755
--- a/scripts/reflinks.py
+++ b/scripts/reflinks.py
@@ -599,7 +599,9 @@
except (URLError,
socket.error,
IOError,
- httplib.error) as e:
+ httplib.error,
+ pywikibot.FatalServerError,
+ pywikibot.Server504Error) as e:
pywikibot.output(u'Can\'t retrieve page %s : %s'
% (ref.url, e))
continue
To view, visit change 391077. To unsubscribe, visit settings.