~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to scripts/python-console

  • Committer: wagrant
  • Date: 2008-07-14 06:25:17 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:867
python-console: Fix traceback trimming when in block mode (worksheets).

Show diffs side-by-side

added added

removed removed

Lines of Context:
176
176
                    cmd = compile(ln['block'], "<web session>", 'exec');
177
177
                    self.execCmd(cmd)
178
178
                except:
179
 
                    tb = format_exc_start()
 
179
                    tb = format_exc_start(start=1)
180
180
                    self.webio.flush()
181
181
                    self.cmdQ.put({"exc": ''.join(tb)})
182
182
                    self.curr_cmd = ''