Throw ParseException if no gallery found

This commit is contained in:
seven332 committed 2019-04-04 10:20:20 +08:00
1 parent c7d7ce8225
commit 311dabba17
1 file changed
+3
@@ -345,6 +345,9 @@ public class GalleryListParser {
list.add(gi);
}
}
if (list.isEmpty()) {
throw new ParseException("No gallery", body);
}
result.galleryInfoList = list;
} catch (Throwable e) {
ExceptionUtils.throwIfFatal(e);