1
0

return bytes in scan_barcode

This commit is contained in:
ThomasV
2017-10-22 12:04:00 +02:00
parent 5cc71ef84b
commit b8c7edf070
3 changed files with 4 additions and 8 deletions

View File

@@ -61,8 +61,7 @@ class ScanQRTextEdit(ButtonsTextEdit, MessageBoxMixin):
except BaseException as e:
self.show_error(str(e))
data = ''
if type(data) != str:
data = ''
data = str(data)
self.setText(data)
return data