From 14db996a4358fe94cf6b7167adf5879643e1c8c3 Mon Sep 17 00:00:00 2001 From: Jonathan Golder Date: Sun, 12 Aug 2018 11:39:33 +0200 Subject: [PATCH 1/2] redfam: Check if moved page exists To prevent creation of orphaned diskpages in case of special movement constructs Issue #71 (https://git.golderweb.de/wiki/jogobot-red/issues/71) --- lib/redfam.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/redfam.py b/lib/redfam.py index 452146b..175a192 100644 --- a/lib/redfam.py +++ b/lib/redfam.py @@ -598,6 +598,11 @@ class RedFamWorker( RedFam ): if self.article_has_status( "redirect", title=article ): try: page = page.moved_target() + + # Short circuit if movement destination does not exists + if not page.exists(): + continue + except pywikibot.exceptions.NoMoveTarget: pass From 3fbfd4ccd724fee1e51c2259fdf2820c4ed10d57 Mon Sep 17 00:00:00 2001 From: Jonathan Golder Date: Sun, 12 Aug 2018 11:46:40 +0200 Subject: [PATCH 2/2] Prepare release-1.1.1 --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index e3f8a0c..d2200cf 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,9 @@ Those can be installed using pip and the _requirements.txt_ file provided with t Versions -------- +* v1.1.1 + - Check if moved page exists + * v1.1 - Improved page filter