#NEWLINE# def _get_account_info_or_raise( self , column_name ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# with self . _get_connection ( ) as conn : #NEWLINE# #INDENT# cursor = conn . execute ( ( 'SELECT %s FROM account;' % ( column_name , ) ) ) #NEWLINE# value = cursor . fetchone ( ) [ 0 ] #NEWLINE# return value #NEWLINE# #UNINDENT# #UNINDENT# except Exception as e : #NEWLINE# #INDENT# raise MissingAccountData ( str ( e ) )