pct/vimpyre — Issue #4: Error when using vimpyre browse
Author: bmsilva
Created: 2011-10-31 10:29:30+00:00
State: open

Hi,

Here is what I did and happened:

```(mypy)bms@sabertooth:~
$ vimpyre browse othree/html5.vim
=> => Send bats to open your browser...
Traceback (most recent call last):
File "/Users/bms/Lab/python/virtualenv/mypy/bin/vimpyre", line 8, in
load_entry_point('vimpyre==0.2.1', 'console_scripts', 'vimpyre')()
File "/Users/bms/Lab/python/virtualenv/mypy/lib/python2.7/site-packages/vimpyre-0.2.1-py2.7.egg/vimpyre/vimpyre.py", line 113, in main
plac.call(dispatch)
File "/Users/bms/Lab/python/virtualenv/mypy/lib/python2.7/site-packages/plac-0.9.0-py2.7.egg/plac_core.py", line 309, in call
cmd, result = parser_from(obj).consume(arglist)
File "/Users/bms/Lab/python/virtualenv/mypy/lib/python2.7/site-packages/plac-0.9.0-py2.7.egg/plac_core.py", line 195, in consume
return cmd, self.func(*(args + varargs + extraopts), **kwargs)
File "/Users/bms/Lab/python/virtualenv/mypy/lib/python2.7/site-packages/vimpyre-0.2.1-py2.7.egg/vimpyre/vimpyre.py", line 110, in dispatch
eval(action + '(%s)' % scripts)
File "", line 1, in
File "/Users/bms/Lab/python/virtualenv/mypy/lib/python2.7/site-packages/vimpyre-0.2.1-py2.7.egg/vimpyre/vimpyre.py", line 89, in browse
bat.open_homepage()
File "/Users/bms/Lab/python/virtualenv/mypy/lib/python2.7/site-packages/vimpyre-0.2.1-py2.7.egg/vimpyre/bat.py", line 176, in open_homepage
if bundle['homepage']:
KeyError: 'homepage'
(mypy)bms@sabertooth:~
$ vimpyre browse https://github.com/othree/html5.vim
=> => Send bats to open your browser...
Traceback (most recent call last):
File "/Users/bms/Lab/python/virtualenv/mypy/bin/vimpyre", line 8, in
load_entry_point('vimpyre==0.2.1', 'console_scripts', 'vimpyre')()
File "/Users/bms/Lab/python/virtualenv/mypy/lib/python2.7/site-packages/vimpyre-0.2.1-py2.7.egg/vimpyre/vimpyre.py", line 113, in main
plac.call(dispatch)
File "/Users/bms/Lab/python/virtualenv/mypy/lib/python2.7/site-packages/plac-0.9.0-py2.7.egg/plac_core.py", line 309, in call
cmd, result = parser_from(obj).consume(arglist)
File "/Users/bms/Lab/python/virtualenv/mypy/lib/python2.7/site-packages/plac-0.9.0-py2.7.egg/plac_core.py", line 195, in consume
return cmd, self.func(*(args + varargs + extraopts), **kwargs)
File "/Users/bms/Lab/python/virtualenv/mypy/lib/python2.7/site-packages/vimpyre-0.2.1-py2.7.egg/vimpyre/vimpyre.py", line 110, in dispatch
eval(action + '(%s)' % scripts)
File "", line 1, in
File "/Users/bms/Lab/python/virtualenv/mypy/lib/python2.7/site-packages/vimpyre-0.2.1-py2.7.egg/vimpyre/vimpyre.py", line 89, in browse
bat.open_homepage()
File "/Users/bms/Lab/python/virtualenv/mypy/lib/python2.7/site-packages/vimpyre-0.2.1-py2.7.egg/vimpyre/bat.py", line 176, in open_homepage
if bundle['homepage']:
TypeError: string indices must be integers, not str
```