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

Attachment: signature.asc
Description: Digital signature

Reply via email to