#NEWLINE# def _get_network_profile( self , db_session , prof_id ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# return db_session . query ( n1kv_models . NetworkProfile ) . filter_by ( id = prof_id ) . one ( ) #NEWLINE# #UNINDENT# except exc . NoResultFound : #NEWLINE# #INDENT# raise n1kv_exc . NetworkProfileNotFound ( profile = self )