From 7d04173f964cfbd2e38f8409996612b9700cfa1b Mon Sep 17 00:00:00 2001 From: eliranwong Date: Sat, 26 Oct 2024 21:59:33 +0000 Subject: [PATCH] fixed integration with ToolMate AI --- setup.py | 2 +- uniquebible/util/LocalCliHandler.py | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index e6467d66e..b688f21e5 100644 --- a/setup.py +++ b/setup.py @@ -41,7 +41,7 @@ # https://packaging.python.org/en/latest/guides/distributing-packages-using-setuptools/ setup( name=package, - version="0.1.22", + version="0.1.23", python_requires=">=3.8, <3.13", description=f"UniqueBible App is a cross-platform & offline bible application, integrated with high-quality resources and unique features. Developers: Eliran Wong and Oliver Tseng", long_description=long_description, diff --git a/uniquebible/util/LocalCliHandler.py b/uniquebible/util/LocalCliHandler.py index e46f695c9..e5712c4f7 100644 --- a/uniquebible/util/LocalCliHandler.py +++ b/uniquebible/util/LocalCliHandler.py @@ -1098,9 +1098,12 @@ def getCommandCompleterSuggestions(self, textCommandSuggestion=None): elif i in ("searchtool:::",): suggestions[i] = self.getDummyDict(self.crossPlatform.searchToolList, ":::") elif self.textCommandParser.parent is not None: - # self.textCommandParser.parent is None when uba is not running as a full app - if i in (f"{self.ttsCommandKeyword}:::",): - suggestions[i] = self.getDummyDict(self.ttsLanguageCodes, ":::") + try: + # self.textCommandParser.parent is None when uba is not running as a full app + if i in (f"{self.ttsCommandKeyword}:::",): + suggestions[i] = self.getDummyDict(self.ttsLanguageCodes, ":::") + except: + pass elif i in ("exlb:::",): suggestions[i] = self.getDummyDict(["exlbt", "exlbp", "exlbl"], ":::") elif i in ("day:::", "dayaudio:::", "dayaudioplus:::"):