#NEWLINE# def handle( self ) : #NEWLINE# #INDENT# if ( not self . args ) : #NEWLINE# #INDENT# self . respond ( ARRIVED_HELP ) #NEWLINE# return True #NEWLINE# #UNINDENT# msdcode = self . args [ 0 ] #NEWLINE# try : #NEWLINE# #INDENT# sql_location = SQLLocation . objects . get ( domain = sql_location . domain , site_code__iexact = msdcode ) #NEWLINE# self . respond ( ARRIVED_KNOWN , facility = sql_location . name ) #NEWLINE# #UNINDENT# except SQLLocation . DoesNotExist : #NEWLINE# #INDENT# self . respond ( ARRIVED_DEFAULT ) #NEWLINE# #UNINDENT# return True