#NEWLINE# def _getOrCreateDomain( self , domain_name ) : #NEWLINE# #INDENT# '\n        Return the boto Domain object representing the SDB domain with the given name. If the\n        domain does not exist it will be created.\n\n        :param domain_name: the unqualified name of the domain to be created\n\n        :rtype : Domain\n        ' #NEWLINE# try : #NEWLINE# #INDENT# return self . db . get_domain ( domain_name ) #NEWLINE# #UNINDENT# except SDBResponseError as e : #NEWLINE# #INDENT# if no_such_domain ( e ) : #NEWLINE# #INDENT# for attempt in retry_sdb ( retry_while = sdb_unavailable ) : #NEWLINE# #INDENT# with domain_name : #NEWLINE# #INDENT# return self . db . create_domain ( domain_name ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# raise