Fix user instantiation bug #3

Open
hnarjis wants to merge 5 commits from hnarjis/matrix-appservice-kakaotalk:user-instantiation-fix into master
Showing only changes of commit c908f0eb50 - Show all commits

View File

@ -424,10 +424,10 @@ class User(DBUser, BaseUser):
state_event=BridgeStateEvent.UNKNOWN_ERROR, state_event=BridgeStateEvent.UNKNOWN_ERROR,
error_code="kt-reconnection-error", error_code="kt-reconnection-error",
) )
except Exception: except Exception as e:
self.log.exception("Error connecting to KakaoTalk") self.log.exception("Error connecting to KakaoTalk")
await self.send_bridge_notice( await self.send_bridge_notice(
"Failed to connect to KakaoTalk: unknown error (see logs for more details)", f"Failed to connect to KakaoTalk: {e.message}",
edit=event_id, edit=event_id,
state_event=BridgeStateEvent.UNKNOWN_ERROR, state_event=BridgeStateEvent.UNKNOWN_ERROR,
error_code="kt-reconnection-error", error_code="kt-reconnection-error",