(topic, errcode)
| 100 | subscriptions.pop(topic, None) |
| 101 | |
| 102 | def subscription_failed(topic, errcode): |
| 103 | if topic == 'me': |
| 104 | # Failed 'me' subscription means the bot is disfunctional. |
| 105 | if errcode.get('code') == 502: |
| 106 | # Cluster unreachable. Break the loop and retry in a few seconds. |
| 107 | client_post(None) |
| 108 | else: |
| 109 | exit(1) |
| 110 | |
| 111 | def login_error(unused, errcode): |
| 112 | # Check for 409 "already authenticated". |
no test coverage detected
searching dependent graphs…