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

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

Issue 2986223002: Add tests for BuildGroup names (Closed)
Patch Set: Updated cf. comments Created 3 years, 4 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
« no previous file with comments | « tools/gardening/lib/src/buildbot_loading.dart ('k') | tools/gardening/lib/src/util.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « tools/gardening/lib/src/buildbot_loading.dart ('k') | tools/gardening/lib/src/util.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698