#NEWLINE# def claim( self , awardee ) : #NEWLINE# #INDENT# 'Claim the deferred award for the given user' #NEWLINE# try : #NEWLINE# #INDENT# award = self . badge . award_to ( awardee = awardee , awarder = self . creator ) #NEWLINE# award . claim_code = self . claim_code #NEWLINE# award . save ( ) #NEWLINE# #UNINDENT# except ( BadgeAlreadyAwardedException , BadgeAwardNotAllowedException ) : #NEWLINE# #INDENT# award = None #NEWLINE# #UNINDENT# if ( not self . reusable ) : #NEWLINE# #INDENT# self . delete ( ) #NEWLINE# #UNINDENT# return award