#NEWLINE# def get_caller_log( self ) : #NEWLINE# #INDENT# "\n        If the command was called by another command, return the caller's\n        RawDataCommandLog object. Else, return None.\n        " #NEWLINE# caller = None #NEWLINE# if ( not self . _called_from_command_line ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# caller = self . command_logs . filter ( command = sys . argv [ 1 ] ) . order_by ( '-start_datetime' ) [ 0 ] #NEWLINE# #UNINDENT# except IndexError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# return self