Fix error string formatting for py26.
This commit is contained in:
		
							parent
							
								
									e2d75cba2c
								
							
						
					
					
						commit
						ca39591ef2
					
				| @ -167,7 +167,7 @@ class SNSBackend(BaseBackend): | |||||||
|         try: |         try: | ||||||
|             return self.topics[arn] |             return self.topics[arn] | ||||||
|         except KeyError: |         except KeyError: | ||||||
|             raise SNSNotFoundError("Topic with arn {} not found".format(arn)) |             raise SNSNotFoundError("Topic with arn {0} not found".format(arn)) | ||||||
| 
 | 
 | ||||||
|     def set_topic_attribute(self, topic_arn, attribute_name, attribute_value): |     def set_topic_attribute(self, topic_arn, attribute_name, attribute_value): | ||||||
|         topic = self.get_topic(topic_arn) |         topic = self.get_topic(topic_arn) | ||||||
| @ -208,7 +208,7 @@ class SNSBackend(BaseBackend): | |||||||
|         try: |         try: | ||||||
|             return self.applications[arn] |             return self.applications[arn] | ||||||
|         except KeyError: |         except KeyError: | ||||||
|             raise SNSNotFoundError("Application with arn {} not found".format(arn)) |             raise SNSNotFoundError("Application with arn {0} not found".format(arn)) | ||||||
| 
 | 
 | ||||||
|     def set_application_attributes(self, arn, attributes): |     def set_application_attributes(self, arn, attributes): | ||||||
|         application = self.get_application(arn) |         application = self.get_application(arn) | ||||||
| @ -237,7 +237,7 @@ class SNSBackend(BaseBackend): | |||||||
|         try: |         try: | ||||||
|             return self.platform_endpoints[arn] |             return self.platform_endpoints[arn] | ||||||
|         except KeyError: |         except KeyError: | ||||||
|             raise SNSNotFoundError("Endpoint with arn {} not found".format(arn)) |             raise SNSNotFoundError("Endpoint with arn {0} not found".format(arn)) | ||||||
| 
 | 
 | ||||||
|     def set_endpoint_attributes(self, arn, attributes): |     def set_endpoint_attributes(self, arn, attributes): | ||||||
|         endpoint = self.get_endpoint(arn) |         endpoint = self.get_endpoint(arn) | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user