BasioMeusPuga/twitchy

IndexError: list index out of range

lasers opened this issue · 2 comments

Hi. I did it wrong anyway... attempting an username instead of channel. Thought you should know.

lasers~ twitchy -w some_random_username
 Checking 1 channel(s)...                                                                                                                                                                                                                     
Traceback (most recent call last):                                                                                                                                                                                                            
  File "/usr/bin/twitchy", line 1294, in <module>
    main()
  File "/usr/bin/twitchy", line 1285, in main
    watch(args.w, 'w')
  File "/usr/bin/twitchy", line 800, in watch
    get_status(status_check_required)
  File "/usr/bin/twitchy", line 772, in get_status
    alt_name = [v[1] for i, v in enumerate(status_check_required) if v[0] == channel_name][0]
IndexError: list index out of range

Hey.

Apparently I was doing case sensitive searches. Imagine my horror. This should be fixed now.
Let me know?

Works okay now in latest master / fixed via commit 62e9b11. Many thanks. Will close this now. :-)