set_base_prompt() - Further check on prompt
set_base_prompt() - Further check on prompt

I've occasionally found the following traceback:
  File "/usr/lib/python2.6/site-packages/netmiko/base_connection.py", line 154, in set_base_prompt
    if not prompt[-1] in (pri_prompt_terminator, alt_prompt_terminator):
IndexError: string index out of range

I've added another check that if the length of the prompt is 0 - then it will throw a more meaningful response. I am still unsure of the original reason for the prompt being empty.
nitzmahone/netmiko,ktbyers/netmiko,jinesh-patel/netmiko,fooelisa/netmiko,jumpojoy/netmiko,brutus333/netmiko,jumpojoy/netmiko,brutus333/netmiko,rdezavalia/netmiko,enzzzy/netmiko,mzbenami/netmiko,MikeOfNoTrades/netmiko,isponline/netmiko,fooelisa/netmiko,isidroamv/netmiko,ktbyers/netmiko,rumo/netmiko,mileswdavis/netmiko,enzzzy/netmiko,mzbenami/netmiko,ivandgreat/netmiko,shamanu4/netmiko,shsingh/netmiko,mileswdavis/netmiko,nitzmahone/netmiko,ivandgreat/netmiko,isidroamv/netmiko,rumo/netmiko,jinesh-patel/netmiko,MikeOfNoTrades/netmiko,rdezavalia/netmiko,isponline/netmiko,shsingh/netmiko,shamanu4/netmiko