#NEWLINE# def _checkAndCreateBucketErrback( self , error , bucket ) : #NEWLINE# #INDENT# if ( int ( error . value . status ) == 404 ) : #NEWLINE# #INDENT# d = self . putBucket ( bucket ) #NEWLINE# d . addErrback ( self . _checkAndCreateBucketErrback2 , bucket ) #NEWLINE# return d #NEWLINE# #UNINDENT# raise Exception ( ( "Could not find or create bucket '%s'." % bucket_name ) )