commit | f00368f9edb4842ef668f4fcfbdcf2f34e3c6226 | [log] [tgz] |
---|---|---|
author | Jeremy Hylton <jeremy@alum.mit.edu> | Mon Jun 16 20:19:49 2003 +0000 |
committer | Jeremy Hylton <jeremy@alum.mit.edu> | Mon Jun 16 20:19:49 2003 +0000 |
tree | 64ae00281f467ea6346a31421c0291aacaf01fc2 | |
parent | a1ad5f658c6408c6a80fc648cb8d0fe23b77ed89 [diff] |
Remove many blanket try/except clauses. SF bug [ 751276 ] cPickle doesn't raise error, pickle does (recursiondepth) Most of the calls to PyErr_Clear() were intended to catch & clear an attribute error and try something different. Guard all those cases with a PyErr_ExceptionMatches() and fail if some other error occurred. The other error is likely a bug in the user code. This is basically the C equivalent of changing "except:" to "except AttributeError:"