From 6a4b0cee42871b036a0ea8cd8e6356bb09e88437 Mon Sep 17 00:00:00 2001 From: "psyc://psyced.org/~lynX" <@> Date: Mon, 12 Sep 2011 15:40:15 +0200 Subject: [PATCH] twitter has interesting ways to break --- world/net/twitter/client.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/world/net/twitter/client.c b/world/net/twitter/client.c index 9ee24a4..d69b4b6 100644 --- a/world/net/twitter/client.c +++ b/world/net/twitter/client.c @@ -88,14 +88,16 @@ void status_update(string text) { parse_statuses(string data) { mixed wurst; - string nick; + string nick, err; object o; mapping d, p; int i; if (!data || data == "") return; - wurst = parse_json(data); + if (err = catch(wurst = parse_json(data))) { + P1(("%O: Twitter is over capacity. %O\n", ME, err)) + } if (mappingp(wurst)) wurst = ({ wurst }); else unless (pointerp(wurst)) {