X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiImport.php;h=c7dcce89586bb6ea46019d77e237aced69d3181a;hb=37297d5468a2339b20e6aebffe9031cf72584270;hp=a1340743e25722622a08f05e61899e3fd8987f3a;hpb=a5aa9f0b95bad2e1a5f1cefdbe11372e9748257c;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiImport.php b/includes/api/ApiImport.php index a1340743e2..c7dcce8958 100644 --- a/includes/api/ApiImport.php +++ b/includes/api/ApiImport.php @@ -79,7 +79,7 @@ class ApiImport extends ApiBase { try { $importer->doImport(); - } catch ( MWException $e ) { + } catch ( Exception $e ) { $this->dieUsageMsg( array( 'import-unknownerror', $e->getMessage() ) ); }