Added fallback for parse_error(string) on elasticsearch_plugin module. (#2517)

pull/18777/head
Shinichi TAMURA 8 years ago committed by Matt Clay
parent 2dda9d3343
commit 73b95ab853

@ -118,7 +118,10 @@ def is_plugin_present(plugin_dir, working_dir):
def parse_error(string): def parse_error(string):
reason = "reason: " reason = "reason: "
return string[string.index(reason) + len(reason):].strip() try:
return string[string.index(reason) + len(reason):].strip()
except ValueError:
return string
def main(): def main():

Loading…
Cancel
Save