comparison libervia/backend/plugins/plugin_comp_ap_gateway/pubsub_service.py @ 4190:92551baea115

component AP gateway: be sure to have a string for error message.
author Goffi <goffi@goffi.org>
date Mon, 11 Dec 2023 18:07:58 +0100
parents 4b842c1fb686
children
comparison
equal deleted inserted replaced
4189:04cd749de818 4190:92551baea115
428 "replies" 428 "replies"
429 ) 429 )
430 except Exception as e: 430 except Exception as e:
431 raise error.StanzaError( 431 raise error.StanzaError(
432 "item-not-found", 432 "item-not-found",
433 text=e 433 text=str(e)
434 ) 434 )
435 else: 435 else:
436 actor_data = await self.apg.get_ap_actor_data_from_account(ap_account) 436 actor_data = await self.apg.get_ap_actor_data_from_account(ap_account)
437 collection = await self.apg.ap_get_object(actor_data, collection_name) 437 collection = await self.apg.ap_get_object(actor_data, collection_name)
438 if not collection: 438 if not collection: