Issue 24 in goobook: Undefined local variable on line 299

3 views
Skip to first unread message

goo...@googlecode.com

unread,
Feb 26, 2011, 3:45:25 PM2/26/11
to goobook...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

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


goo...@googlecode.com

unread,
Feb 26, 2011, 4:07:33 PM2/26/11
to goobook...@googlegroups.com

Comment #1 on issue 24 by kevin.mc...@gmail.com: Undefined local variable

I was too fast on the submit button, as this was fixed in alpha4. Please
close.

goo...@googlecode.com

unread,
Feb 26, 2011, 4:32:42 PM2/26/11
to goobook...@googlegroups.com
Updates:
Status: Invalid

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.)

Reply all
Reply to author
Forward
0 new messages