diff options
author | Vitaly Takmazov | 2018-04-11 09:38:04 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-04-11 09:38:04 +0300 |
commit | e1c13277c72278f1a40b42508d4b00311736e752 (patch) | |
tree | d2a35ff84777299bfd12f99b43815f913f0f83b5 /juick-server/src/main/java/com/juick/server | |
parent | 20e21d61e25b680c086f40ecf5416ed36298c3c3 (diff) |
server: try to handle crosspost exception
Diffstat (limited to 'juick-server/src/main/java/com/juick/server')
-rw-r--r-- | juick-server/src/main/java/com/juick/server/CrosspostManager.java | 6 |
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); + } }); } } |