[Python-modules-team] Bug#583497: xdg.Mime.install_mime_info(): TypeError: unsupported operand type(s) for %: 'exceptions.Exception' and 'str'

Jakub Wilk jwilk at debian.org
Thu May 27 20:21:23 UTC 2010


Package: python-xdg
Version: 0.19-1
Severity: minor

xdg.Mime.install_mime_info() executes update-mime-database. If that call 
failed for some reason, install_mime_info would throw a bogus exception:

Traceback (most recent call last):
   File "test.py", line 3, in <module>
     xdg.Mime.install_mime_info('eggs-ham', '/dev/null')
   File "/usr/lib/pymodules/python2.6/xdg/Mime.py", line 474, in install_mime_info
     "http://standards.freedesktop.org/shared-mime-info/") % command
TypeError: unsupported operand type(s) for %: 'exceptions.Exception' and 'str'

-- 
Jakub Wilk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20100527/0f0f5045/attachment.pgp>


More information about the Python-modules-team mailing list