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

reviewable/pr18780/r1
Shinichi TAMURA 9 years ago committed by René Moser
parent b7e21d161e
commit 346ec3ce3c

@ -118,7 +118,10 @@ def is_plugin_present(plugin_dir, working_dir):
def parse_error(string):
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():

Loading…
Cancel
Save