Philipp Hörist pushed to branch master at gajim / gajim
Commits:
-
07dd8d0c
by lovetox at 2020-10-08T20:26:44+02:00
1 changed file:
Changes:
| ... | ... | @@ -453,13 +453,16 @@ class ServicesCache: |
| 453 | 453 |
if cbkey in self._cbs:
|
| 454 | 454 |
del self._cbs[cbkey]
|
| 455 | 455 |
|
| 456 |
- def _disco_items_received(self, result):
|
|
| 456 |
+ def _disco_items_received(self, task):
|
|
| 457 | 457 |
"""
|
| 458 | 458 |
Callback for when we receive an agent's items
|
| 459 | 459 |
array is (agent, node, items)
|
| 460 | 460 |
"""
|
| 461 |
- if is_error_result(result):
|
|
| 462 |
- self._disco_items_error(result)
|
|
| 461 |
+ |
|
| 462 |
+ try:
|
|
| 463 |
+ result = task.finish()
|
|
| 464 |
+ except StanzaError as error:
|
|
| 465 |
+ self._disco_items_error(error)
|
|
| 463 | 466 |
return
|
| 464 | 467 |
|
| 465 | 468 |
addr = get_agent_address(result.jid, result.node)
|