mirror of
https://gitlab.com/chicken-riders/RcGcDw.git
synced 2025-02-23 00:24:09 +00:00
Fixed a possibility when init_info fails
This commit is contained in:
parent
908b42288d
commit
288e532dbd
|
@ -44,8 +44,12 @@ class Client:
|
||||||
self.__recent_changes.init_info()
|
self.__recent_changes.init_info()
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def namespaces(self):
|
def namespaces(self) -> dict:
|
||||||
|
"""Return a dict of namespaces, if None return empty dict"""
|
||||||
|
if self.__recent_changes.namespaces is not None:
|
||||||
return self.__recent_changes.namespaces
|
return self.__recent_changes.namespaces
|
||||||
|
else:
|
||||||
|
return dict()
|
||||||
|
|
||||||
def parse_links(self, summary: str):
|
def parse_links(self, summary: str):
|
||||||
link_parser = self.LinkParser()
|
link_parser = self.LinkParser()
|
||||||
|
|
Loading…
Reference in a new issue