diff --git a/CB/Tukui.py b/CB/Tukui.py index 313d3a0..33d9bba 100644 --- a/CB/Tukui.py +++ b/CB/Tukui.py @@ -18,11 +18,15 @@ def __init__(self, url, isclassic): self.payload = self.payload.json() self.name = self.payload['name'].strip().strip('\u200b') self.downloadUrl = self.payload['url'] - self.changelogUrl = self.payload['changelog'] self.currentVersion = self.payload['version'] self.archive = None self.directories = [] + if 'changelog' in self.payload: + self.changelogUrl = self.payload['changelog'] + else: + self.changelogUrl = None + @retry() def get_addon(self): self.archive = zipfile.ZipFile(io.BytesIO(requests.get(self.downloadUrl, headers=HEADERS).content)) diff --git a/CB/__init__.py b/CB/__init__.py index 9cad15a..c2d6a3d 100644 --- a/CB/__init__.py +++ b/CB/__init__.py @@ -2,7 +2,7 @@ import random from rich.terminal_theme import TerminalTheme -__version__ = '3.10.1' +__version__ = '3.10.2' __license__ = 'GPLv3' __copyright__ = '2019-2020, Paweł Jastrzębski ' __docformat__ = 'restructuredtext en'