diff --git a/NEMbox/player.py b/NEMbox/player.py index d948f9fe..634fba47 100644 --- a/NEMbox/player.py +++ b/NEMbox/player.py @@ -94,7 +94,11 @@ def runInThread(onExit, arg): if self.playing_flag is False: break - strout = self.popen_handler.stdout.readline().decode('utf-8') + try: + strout = self.popen_handler.stdout.readline().decode('utf-8') + except UnicodeDecodeError as e: + log.error('stdout utf8 decode error:' + strout) + continue if re.match('^\@F.*$', strout): process_data = strout.split(' ')