'Check response from SAB
:param f: Response from SAV
:return: a list of (Boolean, string) which is True if SAB is not reporting an error'

@staticmethod
def _checkSabResponse(f):

    try:
        result = f.readlines()
    except Exception as e:
        sickrage.srCore.srLogger.error(u'Error    trying    to    get    result    from    SAB{}'.format(e.message))
        return (False, u'Error    from    SAB')
    if (len(result) == 0):
        sickrage.srCore.srLogger.error(u'No    data    returned    from    SABnzbd,    NZB    not    sent')
        return (False, u'No    data    from    SAB')
    sabText = result[0].strip()
    sabJson = {}
    try:
        sabJson = json.loads(sabText)
    except ValueError as e:
        pass
    if (sabText == u'Missing    authentication'):
        sickrage.srCore.srLogger.error(u'Incorrect    username/password    sent    to    SAB')
        return (False, u'Incorrect    username/password    sent    to    SAB')
    elif (u'error' in sabJson):
        sickrage.srCore.srLogger.error(sabJson[u'error'])
        return (False, sabJson[u'error'])
    else:
        return (True, sabText)
