From 8e8403e6f0ab8c45f5194007e8dc0f4c2847bb18 Mon Sep 17 00:00:00 2001 From: treatmesubj Date: Tue, 3 Sep 2024 11:26:35 -0500 Subject: [PATCH] syns exceptions --- setup.py | 4 ++-- thesr/thesr.py | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/setup.py b/setup.py index a661b17..f47ab35 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ setup( name="thesr", - version="0.0.10", + version="0.0.11", license="gpl-3.0", author="John Hupperts", author_email="jrock4503@hotmail.com", @@ -15,7 +15,7 @@ long_description=long_description, long_description_content_type="text/markdown", url="https://github.com/treatmesubj/Thesaurus_Rex", - download_url="https://github.com/treatmesubj/Thesaurus_Rex/archive/refs/tags/v0.0.10.tar.gz", + download_url="https://github.com/treatmesubj/Thesaurus_Rex/archive/refs/tags/v0.0.11.tar.gz", packages=["thesr"], package_dir={"Thesaurus_Rex": "thesr"}, project_urls={ diff --git a/thesr/thesr.py b/thesr/thesr.py index fe30879..3d55158 100644 --- a/thesr/thesr.py +++ b/thesr/thesr.py @@ -99,9 +99,7 @@ def get_syns_ants(word): } ) # .lexigraph.thesaurusData.data.slugs[0].entries[-1].partOfSpeechGroups[0].shortDefinitions[0].synonyms[1].targetSlug - except TypeError: - return - except KeyError: + except Exception: return return homonyms