Package: straw
Version: 0.25.1-4
Severity: normal
Tags: patch

On importing certain OPML files you get the highly useful error message: 
"Error occurred while reading file: 'NoneType' object has no attribute 'text'"
because Straw has just assigned the None type to a variable, and then
tried to access one of it's properties.... This is fixed by the following 
patch (on the OPMLImport.py in /usr/lib/straw/straw)

--- OPMLImport.py       2005-04-22 14:14:51.627845687 +0200
+++ OPMLImport.py.fixed 2005-04-22 14:14:39.911970631 +0200
@@ -24,7 +24,8 @@
             title = outline.get('title', '')
             if title == '':
                 e = None
-            e.text = title
+            else:
+                e.text = title
         if e != None:
             if xmlurl != '':
                 # there's something in xmlurl. There's a good chance that's

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (103, 'testing'), (102, 'unstable'), (99, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.10-1-686-smp
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages straw depends on:
ii  gconf2                        2.10.0-1   GNOME configuration database syste
ii  libatk1.0-0                   1.9.0-1    The ATK accessibility toolkit
ii  libc6                         2.3.5-1    GNU C Library: Shared libraries an
ii  libglib2.0-0                  2.6.4-1    The GLib library of C routines
ii  libgtk2.0-0                   2.6.7-1    The GTK+ graphical user interface 
ii  libpango1.0-0                 1.8.1-1    Layout and rendering of internatio
ii  python                        2.3.5-2    An interactive high-level object-o
ii  python2.3                     2.3.5-2    An interactive high-level object-o
ii  python2.3-egenix-mxdatetime   2.0.6-1    date and time handling routines fo
ii  python2.3-glade2              2.6.1-2    GTK+ bindings: Glade support
ii  python2.3-gnome2              2.10.0-1   Python bindings for the GNOME desk
ii  python2.3-gtk2                2.6.1-2    Python bindings for the GTK+ widge

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to