azkaban_cli/azkaban.py
def __catch_response_error_msg(self, exception, response_json):
        """ PRIVATE
        Catches the error message when 'error' exists in the response keys.
        :raise: SessionError, when error_msg equals a 'sessions', or exception(error_msg).
        """
        if u'error' in response_json.keys():
            error_msg = response_json[u'error']
            if error_msg == "session":
                raise SessionError(error_msg)
            raise exception(error_msg)
 PRIVATE
        Catches the error message when 'error' exists in the response keys.
        :raise: SessionError, when error_msg equals a 'sessions', or exception(error_msg).
        
PRIVATE
Catches the error message when 'error' exists in the response keys.
PRIVATE Catches the error message when ' error ' exists in the response keys .
def __catch_response_error_msg(self, exception, response_json):
        if u'error' in response_json.keys():
            error_msg = response_json[u'error']
            if error_msg == "session":
                raise SessionError(error_msg)
            raise exception(error_msg)
def __catch_response_error_msg ( self , exception , response_json ) : if u'error' in response_json . keys ( ) : error_msg = response_json [ u'error' ] if error_msg == "session" : raise SessionError ( error_msg ) raise exception ( error_msg )
PRIVATE
Catches the error message when 'error' exists in the response keys.
PRIVATE Catches the error message when ' error ' exists in the response keys .
""" PRIVATE
        Catches the error message when 'error' exists in the response keys.
        :raise: SessionError, when error_msg equals a 'sessions', or exception(error_msg).
        """
SessionError, when error_msg equals a 'sessions', or exception(error_msg).
SessionError when error_msg equals a ' sessions ' or exception ( error_msg ) .
self
exception
response_json