Opened 9 years ago

Closed 9 years ago

#2772 closed bug (Fixed)

GtkWarning: Failed to set text from markup due to error parsing markup

Reported by: Cas Owned by:
Priority: minor Milestone: 1.3.13
Component: GTK UI Version: 1.3.12
Keywords: Cc:

Description

Another annoying error that needs eliminating, looks like a torrent has <br> in it's comments.

Unhandled error in Deferred:
Unhandled Error
Traceback (most recent call last):
  File "/home/ubuntu/deluge-1.3-stable-git/deluge/ui/gtkui/torrentdetails.py", line 380, in update
    self.tabs[name].update()
  File "/home/ubuntu/deluge-1.3-stable-git/deluge/ui/gtkui/details_tab.py", line 85, in update
    session.get_torrent_status(selected, status_keys).addCallback(self._on_get_torrent_status)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 298, in addCallback
    callbackKeywords=kw)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 287, in addCallbacks
    self._runCallbacks()
--- <exception caught here> ---
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 545, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/home/ubuntu/deluge-1.3-stable-git/deluge/ui/gtkui/details_tab.py", line 111, in _on_get_torrent_status
    widget[0].set_markup(txt.replace('&', '&amp;'))
/home/ubuntu/deluge-1.3-git/deluge/ui/gtkui/details_tab.py:111: GtkWarning: Failed to set text from markup due to error parsing markup: Error on line 1 char 26: Element 'markup' was closed, but the currently open element is 'br'
  widget[0].set_markup(txt.replace('&', '&amp;'))
/home/ubuntu/deluge-1.3-git/deluge/ui/gtkui/details_tab.py:109: GtkWarning: Failed to set text from markup due to error parsing markup: Error on line 1 char 65: Element 'a' was closed, but the currently open element is 'br'
  widget[0].set_markup('<a href="%s">%s</a>' % (txt, txt.replace('&', '&amp;')))

Change History (1)

comment:1 Changed 9 years ago by Cas

  • Resolution set to Fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.