Resizing the terminal window when using a WM that resizes the window as the user is dragging a corner of the terminal window (as opposed to resizing after the user releases the mouse button) can cause yt to crash. After close inspection, it appears that this occurs if a resize occurs while yt displays the "Talking to YouTube..." box.
Traceback (most recent call last):
File "/usr/local/bin/yt", line 9, in <module>
load_entry_point('whitey==0.3', 'console_scripts', 'yt')()
File "/Library/Python/2.7/site-packages/whitey-0.3-py2.7.egg/yt/__init__.py", line 38, in main
ui.run()
File "/Library/Python/2.7/site-packages/whitey-0.3-py2.7.egg/yt/__init__.py", line 117, in run
curses.wrapper(self._curses_main)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/curses/wrapper.py", line 43, in wrapper
return func(stdscr, *args, **kwds)
File "/Library/Python/2.7/site-packages/whitey-0.3-py2.7.egg/yt/__init__.py", line 163, in _curses_main
self._run_pager()
File "/Library/Python/2.7/site-packages/whitey-0.3-py2.7.egg/yt/__init__.py", line 237, in _run_pager
feed = self._get_feed(idx, n_per_page)
File "/Library/Python/2.7/site-packages/whitey-0.3-py2.7.egg/yt/__init__.py", line 204, in _get_feed
self._last_feed = self._feed['fetch_cb'](start, count, self._ordering)
File "/Library/Python/2.7/site-packages/whitey-0.3-py2.7.egg/yt/__init__.py", line 607, in fetch_cb
return json.load(urllib2.urlopen('%s?%s' % (url, urllib.urlencode(query))))
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 127, in urlopen
return _opener.open(url, data, timeout)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 404, in open
response = self._open(req, data)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 422, in _open
'_open', req)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(*args)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1222, in https_open
return self.do_open(httplib.HTTPSConnection, req)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1184, in do_open
raise URLError(err)
urllib2.URLError: <urlopen error [Errno 65] No route to host>
Resizing the terminal window when using a WM that resizes the window as the user is dragging a corner of the terminal window (as opposed to resizing after the user releases the mouse button) can cause yt to crash. After close inspection, it appears that this occurs if a resize occurs while yt displays the "Talking to YouTube..." box.