mirror of
				https://github.com/Mikaela/Limnoria.git
				synced 2025-10-31 07:37:22 +01:00 
			
		
		
		
	Catch a KeyError when trying to remove a non-existent herald.
This commit is contained in:
		
							parent
							
								
									847a98c8c0
								
							
						
					
					
						commit
						3aafc97a7f
					
				| @ -229,8 +229,11 @@ class Herald(callbacks.Privmsg): | ||||
|         except KeyError: | ||||
|             irc.errorNoUser() | ||||
|             return | ||||
|         del self.db[channel, id] | ||||
|         irc.replySuccess() | ||||
|         try: | ||||
|             del self.db[channel, id] | ||||
|             irc.replySuccess() | ||||
|         except KeyError: | ||||
|             irc.error('I have no herald for that user.') | ||||
| 
 | ||||
|     def change(self, irc, msg, args): | ||||
|         """[<channel>] <user|nick|hostmask> <regexp> | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 James Vega
						James Vega