attempt at error reporting
This commit is contained in:
		
							parent
							
								
									c2203f3d40
								
							
						
					
					
						commit
						9dd00e7d03
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		
							
								
								
									
										2
									
								
								robot.py
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								robot.py
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -97,6 +97,8 @@ def start(bot, update):
 | 
			
		|||
 | 
			
		||||
def error(bot, update, error):
 | 
			
		||||
    logger.error(error)
 | 
			
		||||
    if update is not None:
 | 
			
		||||
        update.message.reply_text("Something is fucked: %s" % error)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def main():
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue