return bytes in scan_barcode
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user