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