Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Unified Diff: tools/gardening/lib/src/client.dart

Issue 2986223002: Add tests for BuildGroup names (Closed)
Patch Set: Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..7dc91424e30b893b75c9c8b5e00a95477b803e6b 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 catch (e) {
+ return null;
+ }
}
int get mostRecentBuildNumber => -2;

Powered by Google App Engine
This is Rietveld 408576698