#NEWLINE# @ contextmanager #NEWLINE# def _reraise_errors( wrapper , include = ( Exception , ) , exclude = ( SerializerNotInstalled , ) ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# ( yield ) #NEWLINE# #UNINDENT# except include : #NEWLINE# #INDENT# raise #NEWLINE# #UNINDENT# except include as exc : #NEWLINE# #INDENT# reraise ( wrapper , wrapper ( exc ) , sys . exc_info ( ) [ 2 ] )