Index: trunk/extensions/SwiftMedia/wmf/swift.php |
— | — | @@ -62,8 +62,14 @@ |
63 | 63 | NULL, |
64 | 64 | $wmfSwiftConfig['authUrl'] |
65 | 65 | ); |
66 | | - $auth->authenticate(); |
67 | 66 | |
| 67 | + try { |
| 68 | + $auth->authenticate(); |
| 69 | + } catch ( Exception $e ) { |
| 70 | + wfDebugLog( 'swiftThumb', "Could not establish a connection to Swift." ); |
| 71 | + return null; |
| 72 | + } |
| 73 | + |
68 | 74 | $conn = new CF_Connection( $auth ); |
69 | 75 | |
70 | 76 | $wikiId = "{$site}-{$lang}"; |