catch errs

This commit is contained in:
Henry Hiles 2025-09-28 11:30:15 -04:00
commit 5f45903d79
No known key found for this signature in database

View file

@ -37,6 +37,7 @@ void main(List<String> argsRaw) async {
final client = await container.read(ClientController.provider.future);
client.onTimelineEvent.stream.listen((event) async {
try {
final settings = container.read(SettingsController.provider)!;
if (event.room.canonicalAlias != settings.adminRoom) return;
@ -115,6 +116,9 @@ If you have any issues, reply to this email.""",
);
}
}
} catch (error, stackTrace) {
print("$error\n$stackTrace");
}
});
final handler = const Pipeline()