Setting ERROR status back on failed captcha solving.

This commit is contained in:
ruri
2019-04-19 00:30:20 +02:00
parent 2484ad8dbd
commit 47de6024b5
+3 -1
View File
@@ -246,7 +246,9 @@ namespace RuriLib.LS
// This way we prevent the interruption of the script and an endless retry cycle e.g. if we fail to parse a response given a specific input
if (block != null && (
block.GetType() == typeof(BlockRequest) ||
block.GetType() == typeof(BlockBypassCF)))
block.GetType() == typeof(BlockBypassCF) ||
block.GetType() == typeof(BlockImageCaptcha) ||
block.GetType() == typeof(BlockRecaptcha)))
{
data.Status = BotStatus.ERROR;
throw new BlockProcessingException(ex.Message);