diff --git a/dev/bots/analyze-sample-code.dart b/dev/bots/analyze-sample-code.dart index 5bf2bf5e12..60184aa6b1 100644 --- a/dev/bots/analyze-sample-code.dart +++ b/dev/bots/analyze-sample-code.dart @@ -294,7 +294,12 @@ dependencies: } print('-------8<-------'); } else { - temp.deleteSync(recursive: true); + try { + temp.deleteSync(recursive: true); + } on FileSystemException catch (e) { + // ignore errors deleting the temporary directory + print('Ignored exception during tearDown: $e'); + } } } exit(exitCode);