mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-08-11 16:34:04 +02:00
Error handling on gonewild rips
This commit is contained in:
@@ -64,6 +64,10 @@ public class GonewildRipper extends AbstractRipper {
|
|||||||
.execute()
|
.execute()
|
||||||
.body();
|
.body();
|
||||||
json = new JSONObject(jsonString);
|
json = new JSONObject(jsonString);
|
||||||
|
if (json.has("error")) {
|
||||||
|
logger.error("Error while retrieving user posts:" + json.getString("error"));
|
||||||
|
break;
|
||||||
|
}
|
||||||
posts = json.getJSONArray("posts");
|
posts = json.getJSONArray("posts");
|
||||||
if (posts.length() == 0) {
|
if (posts.length() == 0) {
|
||||||
break; // No more posts to get
|
break; // No more posts to get
|
||||||
|
Reference in New Issue
Block a user