aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java/com
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-04-11 09:38:04 +0300
committerGravatar Vitaly Takmazov2018-04-11 09:38:04 +0300
commite1c13277c72278f1a40b42508d4b00311736e752 (patch)
treed2a35ff84777299bfd12f99b43815f913f0f83b5 /juick-server/src/main/java/com
parent20e21d61e25b680c086f40ecf5416ed36298c3c3 (diff)
server: try to handle crosspost exception
Diffstat (limited to 'juick-server/src/main/java/com')
-rw-r--r--juick-server/src/main/java/com/juick/server/CrosspostManager.java6
1 files changed, 5 insertions, 1 deletions
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);
+ }
});
}
}