Zim

Fwd: [abrt] Zim-0.56-3.fc17: clipboard.py:143:parsetree_from_selectiondata:AttributeError: 'NoneType' object has no attribute 'decode'

Bug #1052724 reported by Robin Lee
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zim
Fix Released
Low
Unassigned

Bug Description

https://bugzilla.redhat.com/show_bug.cgi?id=858250

Version-Release number of selected component:
Zim-0.56-3.fc17

Additional info:
libreport version: 2.0.13
abrt_version: 2.0.12
cmdline: /usr/bin/python /usr/bin/zim
kernel: 3.5.3-1.fc17.x86_64

backtrace:
:clipboard.py:143:parsetree_from_selectiondata:AttributeError: 'NoneType' object has no attribute 'decode'
:
:Traceback (most recent call last):
: File "/usr/lib/python2.7/site-packages/zim/gui/pageview.py", line 3235, in do_paste_clipboard
: self.get_buffer().paste_clipboard(Clipboard, None, self.get_editable())
: File "/usr/lib/python2.7/site-packages/zim/gui/pageview.py", line 2533, in paste_clipboard
: parsetree = clipboard.get_parsetree(self.notebook, self.page)
: File "/usr/lib/python2.7/site-packages/zim/gui/clipboard.py", line 485, in get_parsetree
: return parsetree_from_selectiondata(selectiondata, notebook, path)
: File "/usr/lib/python2.7/site-packages/zim/gui/clipboard.py", line 143, in parsetree_from_selectiondata
: return get_format('plain').Parser().parse(text.decode('utf-8'))
:AttributeError: 'NoneType' object has no attribute 'decode'
:
:Local variables in innermost frame:
:text: None
:selectiondata: <GtkSelectionData at 0x1273900>
:notebook: <Notebook object at 0xf87d20 (zim+notebook+Notebook at 0xf3b040)>
:targetname: 'UTF8_STRING'
:path: <FileStorePage: Zapisky:9 Tue 18.9.2012>

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

Patch:

< return get_format('plain').Parser().parse(text.decode('utf-8'))

> if text:
> return get_format('plain').Parser().parse(text.decode('utf-8'))
> else:
> return ''

Changed in zim:
status: New → Confirmed
importance: Undecided → Low
Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

Will commit in rev632

Changed in zim:
status: Confirmed → Fix Committed
Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

Fix released in version 0.59

Changed in zim:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.