[GTKUI] Fix AttributeError with clipboard strip

This commit is contained in:
Calum Lind 2018-06-20 14:18:40 +01:00
parent 633c56f54e
commit 6ec32a85e4

View file

@ -329,4 +329,5 @@ def listview_replace_treestore(listview):
def get_clipboard_text():
text = clipboard_get(selection=SELECTION_PRIMARY).wait_for_text() or clipboard_get().wait_for_text()
return text.strip()
if text:
return text.strip()