From e1c13277c72278f1a40b42508d4b00311736e752 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 11 Apr 2018 09:38:04 +0300 Subject: server: try to handle crosspost exception --- juick-server/src/main/java/com/juick/server/CrosspostManager.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'juick-server') diff --git a/juick-server/src/main/java/com/juick/server/CrosspostManager.java b/juick-server/src/main/java/com/juick/server/CrosspostManager.java index f518c111..bfd5af30 100644 --- a/juick-server/src/main/java/com/juick/server/CrosspostManager.java +++ b/juick-server/src/main/java/com/juick/server/CrosspostManager.java @@ -72,7 +72,11 @@ public class CrosspostManager { } status += " http://juick.com/" + jmsg.getMid(); Twitter twitter = new TwitterTemplate(twitter_consumer_key, twitter_consumer_secret, t.getToken(), t.getSecret()); - twitter.timelineOperations().updateStatus(status); + try { + twitter.timelineOperations().updateStatus(status); + } catch (Exception e) { + logger.info("Twitter exception", e); + } }); } } -- cgit v1.2.3