Compare commits

..

2 Commits

Author SHA1 Message Date
c908f0eb50 Show connection failure message in bot response 2022-09-06 00:20:59 -04:00
73809ba087 Fix import 2022-09-06 00:07:16 -04:00
2 changed files with 5 additions and 3 deletions

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",

View File

@ -14,7 +14,9 @@
// You should have received a copy of the GNU Affero General Public License // You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>. // along with this program. If not, see <https://www.gnu.org/licenses/>.
import { sha512 } from "hash-wasm" import { sha512 } from "hash-wasm"
import { DefaultConfiguration } from "node-kakao"
import kakao from "node-kakao"
const { DefaultConfiguration } = kakao
DefaultConfiguration.version = "3.4.2" DefaultConfiguration.version = "3.4.2"