Skip to content

Commit

Permalink
syns exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
treatmesubj committed Sep 3, 2024
1 parent 6e4e7ae commit 8e8403e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@

setup(
name="thesr",
version="0.0.10",
version="0.0.11",
license="gpl-3.0",
author="John Hupperts",
author_email="jrock4503@hotmail.com",
description="thesaurus (and also dictionary)",
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={
Expand Down
4 changes: 1 addition & 3 deletions thesr/thesr.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 8e8403e

Please sign in to comment.