generated from mirzaev/pot
try catch for accounts
This commit is contained in:
parent
05143b6865
commit
8ea9e7ef3d
|
@ -184,6 +184,8 @@ final class interneturok extends core
|
|||
// Waiting for processing the request
|
||||
sleep($waiting);
|
||||
|
||||
try {
|
||||
|
||||
if ($this->authentication($account)->wait()) {
|
||||
// Authenticated the account
|
||||
|
||||
|
@ -233,7 +235,7 @@ final class interneturok extends core
|
|||
// Found the target subject
|
||||
|
||||
// Writing into the output buffer
|
||||
echo "Найден школьный предмет: $subject->value для $grade класса (с " . new datetime($event->date)->format('d.m') . ' по ' . new datetime($event->date)->modify('+6 days')->format('d.m') . ")\n";
|
||||
/* echo "Найден школьный предмет: $subject->value для $grade класса (с " . new datetime($event->date)->format('d.m') . ' по ' . new datetime($event->date)->modify('+6 days')->format('d.m') . ")\n"; */
|
||||
|
||||
// Initializing the unblock time
|
||||
$unblock = svoboda::timestamp() - 31536000;
|
||||
|
@ -318,6 +320,9 @@ final class interneturok extends core
|
|||
// Proceed to processing the next account
|
||||
continue;
|
||||
}
|
||||
} catch (exception $exception) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -209,7 +209,6 @@ final class parser extends core
|
|||
$parser = new interneturok();
|
||||
|
||||
try {
|
||||
|
||||
// Parsing homework files
|
||||
$files = $parser->parse(subject: $subject, grade: $grade, waiting: 3);
|
||||
|
||||
|
|
Loading…
Reference in New Issue