|
|
@ -64,7 +64,7 @@ class CommunityHandler implements HttpHandler {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
submissions = this.api.getSub(pathArray[4]);
|
|
|
|
submissions = this.api.getSub(pathArray[4]);
|
|
|
|
} catch (RedditParseException | RedditOAuthException e) {
|
|
|
|
} catch (RedditParseException | RedditOAuthException e) {
|
|
|
|
responseJSON.put("error", "invalid subreddit");
|
|
|
|
responseJSON.put("error", "reddit api error");
|
|
|
|
sendResponse(t, responseJSON.toString());
|
|
|
|
sendResponse(t, responseJSON.toString());
|
|
|
|
e.printStackTrace();
|
|
|
|
e.printStackTrace();
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|