#NEWLINE# @ memoized . memoized_method #NEWLINE# def flavors( self , request ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# return api . trove . flavor_list ( request ) #NEWLINE# #UNINDENT# except Exception : #NEWLINE# #INDENT# LOG . exception ( 'Exception while obtaining flavors list' ) #NEWLINE# redirect = reverse ( 'horizon:project:databases:index' ) #NEWLINE# exceptions . handle ( request , _ ( 'Unable to obtain flavors.' ) , redirect = redirect )