Merge "make XmlDumpwriter more resilient to blob store corruption"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Wed, 24 Jul 2019 12:13:53 +0000 (12:13 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 24 Jul 2019 12:13:53 +0000 (12:13 +0000)
includes/export/XmlDumpWriter.php

index f34b3bd..0003506 100644 (file)
@@ -310,7 +310,8 @@ class XmlDumpWriter {
                } catch ( SuppressedDataException $ex ) {
                        return null;
                } catch ( Exception $ex ) {
-                       if ( $ex instanceof MWException || $ex instanceof RuntimeException ) {
+                       if ( $ex instanceof MWException || $ex instanceof RuntimeException ||
+                               $ex instanceof InvalidArgumentException ) {
                                MWDebug::warning( $warning . ': ' . $ex->getMessage() );
                                return null;
                        } else {