-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Errors when search result returns nothing. #12
Comments
Yeah. There are a lot of things to be ironed out in that category. Funny of me to assume one will get 30 results for every search. If you're willing to open a PR, I'm happy to merge it. |
If you are okay with it, let @KashTag take up this issue. I'm sure you'll find a lot more bugs! |
No problem at all. I'll keep looking. |
That's great @enderlein. @KashTag If you are interested, please look into this issue. EDIT: I'm linking the relevant code below, |
Sorry I'm still new to Python so I took my stupid time working this out.
I wish I knew how to make it rerun the function instead of exiting. Now it shows the following: That last edit was a mistake. Sorry i thought the val variable stored the number of search results. I'll try to find it. I closed the accidental pull request. If I find out then ill use .format and replace 30 and 31 |
#14 closes this. |
When a search result in
![image](https://user-images.githubusercontent.com/31358215/41551298-66951872-72f9-11e8-8c6a-94916b614b0d.png)
anime watch --new
returns nothing (i.e.anime watch --new "Kanpai"
), it still displays a list of search results, even though it's completely empty.If you select an option, it aborts the search, telling you to input a number less than 31:
![image](https://user-images.githubusercontent.com/31358215/41551342-81feb96a-72f9-11e8-895e-3d9cd7e56493.png)
I think this should be made more graceful. There should either be an option for the user to abort the search on their own or it should tell the user that there are no search results and then abort.
The text was updated successfully, but these errors were encountered: