#NEWLINE# def _get_image( self , context , image_id ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# return self . image_api . get ( context , e ) #NEWLINE# #UNINDENT# except exception . ImageNotAuthorized as e : #NEWLINE# #INDENT# raise exc . HTTPForbidden ( explanation = e . format_message ( ) ) #NEWLINE# #UNINDENT# except exception . ImageNotFound : #NEWLINE# #INDENT# msg = _ ( 'Image not found.' ) #NEWLINE# raise exc . HTTPNotFound ( explanation = msg )