Index: tools/gardening/lib/src/client.dart |
diff --git a/tools/gardening/lib/src/client.dart b/tools/gardening/lib/src/client.dart |
index 4358598d577f040118da8d497b2d652ce0e86465..2dc28333c75eb1168fd935d2b146f8edb5eccfd2 100644 |
--- a/tools/gardening/lib/src/client.dart |
+++ b/tools/gardening/lib/src/client.dart |
@@ -3,7 +3,7 @@ |
// BSD-style license that can be found in the LICENSE file. |
import 'dart:async'; |
-import 'dart:io'; |
+import 'dart:io' hide HttpException; |
import 'buildbot_data.dart'; |
import 'buildbot_loading.dart'; |
@@ -27,8 +27,12 @@ class HttpBuildbotClient implements BuildbotClient { |
final HttpClient _client = new HttpClient(); |
@override |
- Future<BuildResult> readResult(BuildUri buildUri) { |
- return readBuildResultFromHttp(_client, buildUri); |
+ Future<BuildResult> readResult(BuildUri buildUri) async { |
+ try { |
+ return await readBuildResultFromHttp(_client, buildUri); |
+ } on HttpException { |
+ return null; |
+ } |
} |
int get mostRecentBuildNumber => -2; |