#NEWLINE# def _extract_error_code( self , exception ) : #NEWLINE# #INDENT# m = re . compile ( '\\[SQLCode\\: (\\d+)\\]' ) . search ( str ( exception . args ) ) #NEWLINE# c = m . group ( 1 ) #NEWLINE# if c : #NEWLINE# #INDENT# return int ( c )