#NEWLINE# def patch( self , * args , **kwargs ) : #NEWLINE# #INDENT# '\n        Edit the selected document metadata type and value.\n        ' #NEWLINE# try : #NEWLINE# #INDENT# return super ( APIDocumentMetadataView , self ) . patch ( * args , ** kwargs ) #NEWLINE# #UNINDENT# except Exception as exception : #NEWLINE# #INDENT# return Response ( status = status . HTTP_400_BAD_REQUEST , data = { #NEWLINE# #INDENT# 'non_fields_errors' : unicode ( exception ) , #NEWLINE# #UNINDENT# } )