New issue 24 by kevin.mc...@gmail.com: Undefined local variable on line 299
http://code.google.com/p/goobook/issues/detail?id=24
For the just released alpha3, there is a small bug with a variable name on
line 299 in goobook.py. The loop variable is address, but inside the loop
it's referencing ent.
Traceback (most recent call last):
File "/usr/bin/goobook", line 9, in <module>
load_entry_point('goobook==1.4alpha3', 'console_scripts', 'goobook')()
File "/usr/lib/python2.6/dist-packages/goobook/application.py", line 83,
in main
args.func(config, args)
File "/usr/lib/python2.6/dist-packages/goobook/application.py", line 111,
in do_query
goobk = GooBook(config)
File "/usr/lib/python2.6/dist-packages/goobook/goobook.py", line 59, in
__init__
self.cache.load()
File "/usr/lib/python2.6/dist-packages/goobook/goobook.py", line 240, in
load
self.update()
File "/usr/lib/python2.6/dist-packages/goobook/goobook.py", line 247, in
update
self.contacts = list(self._parse_contacts(gc.fetch_contacts()))
File "/usr/lib/python2.6/dist-packages/goobook/goobook.py", line 320, in
_parse_contacts
yield self._parse_contact(entry)
File "/usr/lib/python2.6/dist-packages/goobook/goobook.py", line 299, in
_parse_contact
label = ent.get('label') or ent.get('rel').split('#')[-1]
UnboundLocalError: local variable 'ent' referenced before assignment
I was too fast on the submit button, as this was fixed in alpha4. Please
close.
Comment #2 on issue 24 by h...@furuvik.net: Undefined local variable on
line 299
http://code.google.com/p/goobook/issues/detail?id=24
(No comment was entered for this change.)