aboutsummaryrefslogtreecommitdiffstats
path: root/host/utils
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2012-04-12 09:46:38 -0700
committerJosh Blum <josh@joshknows.com>2012-04-12 09:46:38 -0700
commit34627f1c7780d8c8578964c6594fef7a6640e727 (patch)
tree966ec06ce23b6aca80d798c9a4a77301bee67704 /host/utils
parent3fb067567b0c799b3c707938491eb8489d85fefa (diff)
downloaduhd-34627f1c7780d8c8578964c6594fef7a6640e727.tar.gz
uhd-34627f1c7780d8c8578964c6594fef7a6640e727.tar.bz2
uhd-34627f1c7780d8c8578964c6594fef7a6640e727.zip
utils: card/net burner string decode
Diffstat (limited to 'host/utils')
-rwxr-xr-xhost/utils/usrp2_card_burner.py2
-rwxr-xr-xhost/utils/usrp_n2xx_net_burner.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/host/utils/usrp2_card_burner.py b/host/utils/usrp2_card_burner.py
index 34c40d5a0..02d5c4b18 100755
--- a/host/utils/usrp2_card_burner.py
+++ b/host/utils/usrp2_card_burner.py
@@ -50,7 +50,7 @@ def command(*args):
stderr=subprocess.STDOUT,
)
ret = p.wait()
- verbose = p.stdout.read().decode()
+ verbose = p.stdout.read().decode('utf-8', errors='ignore')
if ret != 0: raise Exception(verbose)
return verbose
diff --git a/host/utils/usrp_n2xx_net_burner.py b/host/utils/usrp_n2xx_net_burner.py
index 31c94405b..ae6219524 100755
--- a/host/utils/usrp_n2xx_net_burner.py
+++ b/host/utils/usrp_n2xx_net_burner.py
@@ -134,7 +134,7 @@ def command(*args):
stderr=subprocess.STDOUT,
)
ret = p.wait()
- verbose = p.stdout.read().decode()
+ verbose = p.stdout.read().decode('utf-8', errors='ignore')
if ret != 0: raise Exception(verbose)
return verbose