diff -r 105d78ba97d4 -r e16c9ced6ae5 DebugClients/Python/DebugClientBase.py --- a/DebugClients/Python/DebugClientBase.py Mon Mar 11 19:00:54 2013 +0100 +++ b/DebugClients/Python/DebugClientBase.py Wed Mar 13 18:35:24 2013 +0100 @@ -1484,12 +1484,15 @@ varlist.extend(vlist) if obj is not None and not formatSequences: - if unicode(repr(obj)).startswith('{'): - varlist.append(('...', 'dict', "%d" % len(obj.keys()))) - elif unicode(repr(obj)).startswith('['): - varlist.append(('...', 'list', "%d" % len(obj))) - elif unicode(repr(obj)).startswith('('): - varlist.append(('...', 'tuple', "%d" % len(obj))) + try: + if unicode(repr(obj)).startswith('{'): + varlist.append(('...', 'dict', "%d" % len(obj.keys()))) + elif unicode(repr(obj)).startswith('['): + varlist.append(('...', 'list', "%d" % len(obj))) + elif unicode(repr(obj)).startswith('('): + varlist.append(('...', 'tuple', "%d" % len(obj))) + except: + pass self.write('%s%s\n' % (DebugProtocol.ResponseVariable, unicode(varlist)))