Throw ParseException if no gallery found
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user