Page Menu
Home
GitPull.it
Search
Configure Global Search
Log In
Files
F6999363
D20.1765105254.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
795 B
Referenced Files
None
Subscribers
None
D20.1765105254.diff
View Options
diff --git a/.arcconfig b/.arcconfig
--- a/.arcconfig
+++ b/.arcconfig
@@ -1,3 +1,3 @@
{
- "phabricator.uri" : "https://sviluppo.erinformatica.it/"
+ "phabricator.uri" : "https://gitpull.it/"
}
diff --git a/orphanize.php b/orphanize.php
--- a/orphanize.php
+++ b/orphanize.php
@@ -104,8 +104,19 @@
// wiki instance
$wiki = Mediawikis::findFromUid( $wiki_uid );
-// load the wiki config
-wiki_config();
+// try to load the wiki config
+try {
+ wiki_config();
+} catch( \Exception $e ) {
+
+ // I don't have any clue about this but sometime happen
+ Log::error( sprintf(
+ "failed reading wiki configuration: %s",
+ $e->getMessage()
+ ) );
+
+ exit( 1 );
+}
// parameters available both from cli and on-wiki
$SUMMARY = option( 'summary', "Bot: pages orphanization" );
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 7, 12:00 (1 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1427192
Default Alt Text
D20.1765105254.diff (795 B)
Attached To
Mode
D20: gracefully die in case of early API error
Attached
Detach File
Event Timeline
Log In to Comment