zephyr_mirror: Improve error handling getting public streams list.
(imported from commit 06f9c00f19056bfe7db3c02955e3a29ad270de6e)
This commit is contained in:
		
							parent
							
								
									c751cc97db
								
							
						
					
					
						commit
						4ca1572283
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -133,7 +133,11 @@ def zephyr_bulk_subscribe(subs):
 | 
			
		|||
def update_subscriptions_from_humbug():
 | 
			
		||||
    try:
 | 
			
		||||
        res = humbug_client.get_public_streams()
 | 
			
		||||
        streams = res["streams"]
 | 
			
		||||
        if res.get("result") == "success":
 | 
			
		||||
            streams = res["streams"]
 | 
			
		||||
        else:
 | 
			
		||||
            logger.error("Error getting public streams:\n%s" % res)
 | 
			
		||||
            return
 | 
			
		||||
    except:
 | 
			
		||||
        logger.exception("Error getting public streams:")
 | 
			
		||||
        return
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue