After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 351919 - Creating Firefox bookmark with empty Location (URL) field throws AttributeError
Creating Firefox bookmark with empty Location (URL) field throws AttributeError
Status: RESOLVED FIXED
Product: deskbar-applet
Classification: Deprecated
Component: general
2.14.x
Other Linux
: Normal normal
: ---
Assigned To: Deskbar Applet Maintainer(s)
Deskbar Applet Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2006-08-18 13:33 UTC by Lewis Thompson
Modified: 2006-08-21 13:09 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14



Description Lewis Thompson 2006-08-18 13:33:54 UTC
I created a new bookmark with a name but no location (by accident) and Deskbar told me there'd been an error.  It didn't crash and I was able to repeat the error by adding another empty bookmark:

Traceback (most recent call last):
  • File "/usr/lib/deskbar-applet/handlers/mozilla.py", line 153 in <lambda>
    self.watcher.connect('changed', lambda watcher, f: self._parse_bookmarks())
  • File "/usr/lib/deskbar-applet/handlers/mozilla.py", line 161 in _parse_bookmarks
    self._bookmarks, parsed_file, self._shortcuts_to_smart_bookmarks_map = MozillaBookmarksParser(self).get_indexer()
  • File "/usr/lib/deskbar-applet/handlers/mozilla.py", line 257 in __init__
    self.close()
  • File "/usr/lib/python2.4/HTMLParser.py", line 112 in close
    self.goahead(1)
  • File "/usr/lib/python2.4/HTMLParser.py", line 150 in goahead
    k = self.parse_endtag(i)
  • File "/usr/lib/python2.4/HTMLParser.py", line 316 in parse_endtag
    self.handle_endtag(tag.lower())
  • File "/usr/lib/deskbar-applet/handlers/mozilla.py", line 302 in handle_endtag
    if self.href.startswith("javascript:"):
AttributeError: 'NoneType' object has no attribute 'startswith'

Great app, keep up the good work!
Comment 1 Lewis Thompson 2006-08-18 13:35:02 UTC
Running on Dapper Drake.  Firefox 1.5.0.5 and Deskbar 2.14.2.
Thanks.
Comment 2 Sebastian Pölsterl 2006-08-20 16:02:18 UTC
I can't reproduce this problem with the latest CVS version.
Comment 3 Raphael Slinckx 2006-08-21 13:09:10 UTC
This was fixed in CVS already, closing