#NEWLINE# def get_user( self , user_id ) : #NEWLINE# #INDENT# 'Return a User by their UserID.\n\n        Raises KeyError if the User is not available.\n        ' #NEWLINE# try : #NEWLINE# #INDENT# return self . _user_dict [ user_id ] #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# logger . warning ( 'UserList returning unknown User for UserID {}' . format ( user_id ) ) #NEWLINE# return User ( user_id , DEFAULT_NAME , None , None , [ ] , False )