def Bail_Out(browserhost, cherryport, err=''):
 logging.error(((T('Failed to start web-interface') + ' : ') + str(err)))
 if (not sabnzbd.DAEMON):
  if ('13' in err):
   panic_xport(browserhost, cherryport)
  elif ('49' in err):
   panic_host(browserhost, cherryport)
  else:
   panic_port(browserhost, cherryport)
 sabnzbd.halt()
 exit_sab(2)

def Bail_Out ( browserhost , cherryport , err = '' ) : logging . error ( ( ( T ( 'Failed to start web-interface' ) + ' : ' ) + str ( err ) ) ) if ( not sabnzbd . DAEMON ) : if ( '13' in err ) : panic_xport ( browserhost , cherryport ) elif ( '49' in err ) : panic_host ( browserhost , cherryport ) else : panic_port ( browserhost , cherryport ) sabnzbd . halt ( ) exit_sab ( 2 )
abort program because of cherrypy troubles .