[pycaffe] correct exceptions from Python; remove PyErr_Print
authorJonathan L Long <jonlong@cs.berkeley.edu>
Fri, 15 May 2015 05:14:13 +0000 (22:14 -0700)
committerJonathan L Long <jonlong@cs.berkeley.edu>
Fri, 15 May 2015 05:14:13 +0000 (22:14 -0700)
commit41d13c08e883588badf9d00b60c0dc24c7905fd1
treed41dd050bdc79ad85a6549009384a8aa145beb8f
parentaf224c1715aa153d7738eb173b3b7ba684a2af93
[pycaffe] correct exceptions from Python; remove PyErr_Print

Previously, PyErr_Print was used to print Python exceptions. This has
the side effect of clearing the exception, which results in (an
additional) SystemError in the Python interpreter. Exception printing
from the caffe binary tool is re-added in a future commit.
include/caffe/python_layer.hpp