diff --git a/python3/vdebug/dbgp.py b/python3/vdebug/dbgp.py index 053f018..4438a1d 100644 --- a/python3/vdebug/dbgp.py +++ b/python3/vdebug/dbgp.py @@ -458,8 +458,11 @@ def _get_enc_node_text(self, node, name, default=None): n = node.find('%s%s' % (self.ns, name)) if n is not None and n.text is not None: if n.get('encoding') == 'base64': - val = base64.decodebytes(n.text.encode("UTF-8")).decode( - "UTF-8") + try: + val = base64.decodebytes(n.text.encode("UTF-8")).decode( + "UTF-8") + except UnicodeDecodeError: + val = n.text else: val = n.text else: