From 48838be816fc897a8687e95e6f86d8c40e5a9bfc Mon Sep 17 00:00:00 2001 From: ThomasV Date: Wed, 25 Feb 2015 15:51:04 +0100 Subject: [PATCH] android: fix make_new_contacts --- gui/android.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/android.py b/gui/android.py index 96ae55fe..70950cda 100644 --- a/gui/android.py +++ b/gui/android.py @@ -478,7 +478,7 @@ def make_new_contact(): code = droid.scanBarcode() r = code.result if r: - data = r['extras']['SCAN_RESULT'] + data = str(r['extras']['SCAN_RESULT']).strip() if data: if re.match('^bitcoin:', data): address, _, _, _, _ = util.parse_URI(data)