Page MenuHomeGitPull.it

D21.1777590686.diff
No OneTemporary

Size
862 B
Referenced Files
None
Subscribers
None

D21.1777590686.diff

diff --git a/bot.php b/bot.php
--- a/bot.php
+++ b/bot.php
@@ -106,13 +106,24 @@
}
$stats = implode( ", ", $stats );
-$wit->login();
-$wit->edit( [
- 'title' => MARKADMINS_PAGE,
- 'summary' => "Bot: aggiornamento elenco utenti: $stats",
- 'text' => json_encode( [ 'legend' => $LEGEND, 'users' => $users ] ),
- 'contentformat' => 'application/json',
- 'bot' => 1,
-] );
+try {
+
+ $wit->login();
+
+ $wit->edit( [
+ 'title' => MARKADMINS_PAGE,
+ 'summary' => "Bot: aggiornamento elenco utenti: $stats",
+ 'text' => json_encode( [ 'legend' => $LEGEND, 'users' => $users ] ),
+ 'contentformat' => 'application/json',
+ 'bot' => 1,
+ ] );
+
+} catch( Exception $e ) {
+
+ \cli\Log::error( sprintf(
+ "something bad happened: %s",
+ $e->getMessage()
+ ) );
+}
\cli\Log::info( $stats );

File Metadata

Mime Type
text/plain
Expires
Fri, May 1, 01:11 (16 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1880100
Default Alt Text
D21.1777590686.diff (862 B)

Event Timeline