mirror of
				https://git.launchpad.net/ubuntu-dev-tools
				synced 2025-10-30 21:44:14 +00:00 
			
		
		
		
	ubuntu-universe-sponsors doesn't exist, don't try to unsubscribe them
This commit is contained in:
		
							parent
							
								
									3515d7ac78
								
							
						
					
					
						commit
						b23792c20f
					
				
							
								
								
									
										11
									
								
								ack-sync
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								ack-sync
									
									
									
									
									
								
							| @ -129,21 +129,12 @@ def get_email_from_file(name): | |||||||
| 	return None | 	return None | ||||||
| 
 | 
 | ||||||
| def unsubscribe_sponsors(launchpad, bug): | def unsubscribe_sponsors(launchpad, bug): | ||||||
| 	succeeded_unsubscribe = True |  | ||||||
| 	ums = launchpad.people['ubuntu-main-sponsors'] | 	ums = launchpad.people['ubuntu-main-sponsors'] | ||||||
| 	uus = launchpad.people['ubuntu-universe-sponsors'] |  | ||||||
| 	try: | 	try: | ||||||
| 		bug.unsubscribe(person=ums) | 		bug.unsubscribe(person=ums) | ||||||
|  | 		print "ubuntu-main-sponsors unsubscribed (for backward compatibility)" | ||||||
| 	except lazr.restfulclient.errors.HTTPError, http_error: | 	except lazr.restfulclient.errors.HTTPError, http_error: | ||||||
| 		print "failed to unsubscribe ubuntu-main-sponsors: " + http_error.content | 		print "failed to unsubscribe ubuntu-main-sponsors: " + http_error.content | ||||||
| 		succeeded_unsubscribe = False |  | ||||||
| 	try: |  | ||||||
| 		bug.unsubscribe(person=uus) |  | ||||||
| 	except lazr.restfulclient.errors.HTTPError, http_error: |  | ||||||
| 		print "failed to unsubscribe ubuntu-universe-sponsors: " + http_error.content |  | ||||||
| 		succeeded_unsubscribe = False |  | ||||||
| 	if succeeded_unsubscribe: |  | ||||||
| 		print "ubuntu-{main,universe}-sponsors unsubscribed (for backward compatibility)" |  | ||||||
| 
 | 
 | ||||||
| 	us = launchpad.people['ubuntu-sponsors'] | 	us = launchpad.people['ubuntu-sponsors'] | ||||||
| 	bug.unsubscribe(person=us) | 	bug.unsubscribe(person=us) | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user