diff --git a/README.md b/README.md index 84c4a1d..b57886c 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Get random anime gifs by category. Use Python (intended (for now) for Discord). -WIP - updated in time to time. Versions below v0.5.3 aren't expected to work flawlessly or at all. Version below v0.6 will not have the gifs library updated anymore. +WIP - updated in time to time. Versions below v0.5.3 aren't expected to work flawlessly or at all. Version below v0.7 will not have the gifs library updated anymore. For troubleshoots, known errors and categories list, check below. `pip install animegifs` @@ -49,7 +49,7 @@ user_input = input() #let user send any input and search if that input matches a #if user_input == "nom": #nom as category doesn't exist, but is similar to bite (as example) # user_input = "bite" try: - gif = gifs.get_gif(user_input) #return the url of the gif if category exists. + gif = gifs.get_gif(user_input) #return the url of the gif if the category exists. except animegifs.errors.CategoryError: print("not a valid gif category.") ``` @@ -99,7 +99,7 @@ except animegifs.errors.CategoryError: * Run **S** -* Sad, Scared, ,Shoot, Shrug, Sip, Slap, Smirk, Sorry, Spank, Stare +* Sad, Scared, Shoot, Shrug, Sip, Slap, Smirk, Sorry, Spank, Stare **T** * Tease, Threat, Tickle, Tired diff --git a/animegifs/distutils/errors.py b/animegifs/distutils/errors.py index 75b33d3..99a8c09 100644 --- a/animegifs/distutils/errors.py +++ b/animegifs/distutils/errors.py @@ -1,7 +1,7 @@ class CategoryIntegral(Exception): """ Category can't be an integral, only a string. - You can check valid categories at: https://github.com/MarcoSa-2000/animegifs + You can check valid categories at: https://github.com/MarcoSa-2000/animegifs#category-list """ def __init__(self, category, error="Category can't be an integral."): @@ -12,7 +12,7 @@ def __init__(self, category, error="Category can't be an integral."): class CategoryError(Exception): """ Not a valid category. Category must be a string. - You can check valid categories at: https://github.com/MarcoSa-2000/animegifs + You can check valid categories at: https://github.com/MarcoSa-2000/animegifs#category-list """ def __init__(self, category, error="Not a valid category."): @@ -24,7 +24,7 @@ class CategoryUnknown(Exception): """ This is a not handled error, probably the category type is neither an int nor a str. Make sure to check category is a string and is a valid category. - You can check valid categories at: https://github.com/MarcoSa-2000/animegifs + You can check valid categories at: https://github.com/MarcoSa-2000/animegifs#category-list """ def __init__(self, category, error="Not a valid category."): diff --git a/setup.py b/setup.py index 9bf9058..d1b2e21 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ long_description = "\n" + fh.read() LONG_DESCRIPTION = long_description -VERSION = '0.7.1' +VERSION = '0.7.2' setup( name='animegifs', @@ -23,9 +23,9 @@ license='MIT', url="https://github.com/MarcoSa-2000/animegifs", install_requires=[ - 'requests>=2.28.2,<=2.29.0', + 'requests==2.31.0', 'mal-api==0.5.3', - 'PyJWT>=2.4.0,<=2.7.0' + 'PyJWT>=2.4.0,<=2.8.0' ], python_requires='>=3.8', classifiers=[