ERROR:root:'YTVideo' object has no attribute 'rating'
Traceback (most recent call last):
File "./tuijam", line 1804, in main
loop.run()
File "/usr/lib/python3.7/site-packages/urwid/main_loop.py", line 286, in run
self._run()
File "/usr/lib/python3.7/site-packages/urwid/main_loop.py", line 384, in _run
self.event_loop.run()
File "/usr/lib/python3.7/site-packages/urwid/main_loop.py", line 1005, in run
reraise(*exc_info)
File "/usr/lib/python3.7/site-packages/urwid/compat.py", line 58, in reraise
raise value
File "/usr/lib/python3.7/site-packages/urwid/main_loop.py", line 1018, in wrapper
return f(*args,**kargs)
File "/usr/lib/python3.7/site-packages/urwid/main_loop.py", line 938, in io_callback
callback()
File "/usr/lib/python3.7/site-packages/urwid/raw_display.py", line 404, in <lambda>
event_loop, callback, self.get_available_raw_input())
File "/usr/lib/python3.7/site-packages/urwid/raw_display.py", line 502, in parse_input
callback(processed, processed_codes)
File "/usr/lib/python3.7/site-packages/urwid/main_loop.py", line 411, in _update
self.process_input(keys)
File "/usr/lib/python3.7/site-packages/urwid/main_loop.py", line 511, in process_input
k = self._topmost_widget.keypress(self.screen_size, k)
File "./tuijam", line 1238, in keypress
self.rate_current_song(5)
File "./tuijam", line 1420, in rate_current_song
if self.current_song.rating == rating:
AttributeError: 'YTVideo' object has no attribute 'rating'
I guess it's better to disable like/dislike keys for YTVideos.
Here are the logs:
I guess it's better to disable like/dislike keys for
YTVideo
s.