예제 #1
0
파일: kernel.py 프로젝트: yssoe/splash
 def error(failure):
     text = "<unknown error>"
     try:
         failure.raiseException()
     except Exception as e:
         text = error_repr(e)
     reply = {
         'status': 'error',
         'execution_count': self.execution_count,
         'ename': '',
         'evalue': text,
         'traceback': []
     }
     return reply, text, 'text/plain'
예제 #2
0
파일: kernel.py 프로젝트: sundisee/splash
 def error(failure):
     text = "<unknown error>"
     try:
         failure.raiseException()
     except Exception as e:
         text = error_repr(e)
     reply = {
         'status': 'error',
         'execution_count': self.execution_count,
         'ename': '',
         'evalue': text,
         'traceback': []
     }
     return reply, text, 'text/plain'