diff --git a/CB/__init__.py b/CB/__init__.py index e2e0d39..96414a2 100644 --- a/CB/__init__.py +++ b/CB/__init__.py @@ -1,7 +1,7 @@ import requests from rich.terminal_theme import TerminalTheme -__version__ = '4.3.2' +__version__ = '4.3.3' __license__ = 'GPLv3' __copyright__ = '2019-2022, Paweł Jastrzębski ' __docformat__ = 'restructuredtext en' diff --git a/CurseBreaker.py b/CurseBreaker.py index 58a62eb..6743e05 100644 --- a/CurseBreaker.py +++ b/CurseBreaker.py @@ -529,6 +529,7 @@ def c_update(self, args, addline=False, update=True, force=False, reverseprovide name, authors, versionnew, versionold, uiversion, modified, blocked, source, sourceurl, \ changelog, dstate = self.core.update_addon( addon if isinstance(addon, str) else addon['URL'], update, force) + payload = None if source == 'Unsupported' and not provider: additionalstatus = f' [bold red]{source.upper()}[/bold red]' else: @@ -561,12 +562,13 @@ def c_update(self, args, addline=False, update=True, force=False, reverseprovide else: payload = [f'[bold black]Not installed[/bold black]{additionalstatus}', Text(addon, no_wrap=True), Text('', no_wrap=True)] - if provider: - if source == 'Unsupported': - payload.insert(1, f'[bold red]{source.upper()}[/bold red]') - else: - payload.insert(1, source) - self.table.add_row(*payload) + if payload: + if provider: + if source == 'Unsupported': + payload.insert(1, f'[bold red]{source.upper()}[/bold red]') + else: + payload.insert(1, source) + self.table.add_row(*payload) except Exception as e: exceptions.append(e) progress.update(task, advance=1 if args else 0.5, refresh=True)