#NEWLINE# def get_registered_image( self , image ) : #NEWLINE# #INDENT# img = self . get ( image ) #NEWLINE# if img . username : #NEWLINE# #INDENT# return img #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise exc . ImageNotRegistered ( image )