#NEWLINE# def _dock_json_get_plugin_conf_or_fail( self , plugin_type , plugin_name ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# conf = self . dock_json_get_plugin_conf ( plugin_type , plugin_name ) #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# raise RuntimeError ( ( "Invalid dock json: plugin type '%s' misses" % plugin_type ) ) #NEWLINE# #UNINDENT# except IndexError : #NEWLINE# #INDENT# raise RuntimeError ( ( 'no such plugin in dock json: "%s"' % plugin_name ) ) #NEWLINE# #UNINDENT# return conf