diff --git a/rcgcdw.py b/rcgcdw.py index ba84852..3443d79 100644 --- a/rcgcdw.py +++ b/rcgcdw.py @@ -1297,7 +1297,10 @@ class Recent_Changes_Class(object): except KeyError: self.tags[tag["name"]] = None # Tags with no display name are hidden and should not appear on RC as well for message in startup_info["allmessages"]: - self.mw_messages[message["name"]] = message["*"] + if not "missing" in message: # ignore missing strings + self.mw_messages[message["name"]] = message["*"] + else: + logging.warning("Could not fetch the MW message translation for: {}".format(message["name"])) for key, message in self.mw_messages.items(): if key.startswith("recentchanges-page-"): self.mw_messages[key] = re.sub(r'\[\[.*?\]\]', '', message)