diff options
author | 2020-02-18 17:25:01 +0200 | |
---|---|---|
committer | 2020-02-18 17:25:01 +0200 | |
commit | 007d93c5e63a8167f3aa5158b85aca8599f3bda3 (patch) | |
tree | eb66dd5ef468e5b905d22d8fb94b441feb792cc5 | |
parent | Fixed error message for less than 1 movie check. (diff) |
Fixed comments in Movie cog
-rw-r--r-- | bot/seasons/evergreen/movie.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/seasons/evergreen/movie.py b/bot/seasons/evergreen/movie.py index e7671c59..3c5a312d 100644 --- a/bot/seasons/evergreen/movie.py +++ b/bot/seasons/evergreen/movie.py @@ -76,7 +76,7 @@ class Movie(Cog): await ctx.send_help('movies') return - # Check is results is result. If not, throw error. + # Check if "results" is in result. If not, throw error. if "results" not in result.keys(): err_msg = f"There is problem while making TMDB API request. Response Code: {result['status_code']}, " \ f"{result['status_message']}." @@ -86,7 +86,7 @@ class Movie(Cog): # Get random page. Max page is last page where is movies with this genre. page = random.randint(1, result["total_pages"]) - # Get movies list from TMDB, check is results key in result. When not, raise error. + # Get movies list from TMDB, check if results key in result. When not, raise error. movies = await self.get_movies_list(self.http_session, MovieGenres[genre].value, page) if 'results' not in movies.keys(): err_msg = f"There is problem while making TMDB API request. Response Code: {result['status_code']}, " \ |