Skip to content

Commit 0b5905c

Browse files
committed
add try ... catch statement
1 parent ef4fa6c commit 0b5905c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/serious_python/bin/package_command.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ class PackageCommand extends Command {
487487
for (var entity in directory.listSync()) {
488488
if (globs.any((g) => g.matches(entity.path.replaceAll("\\", "/"))) &&
489489
await entity.exists()) {
490-
verbose("Deleting ${entity.path}");
490+
try {verbose("Deleting ${entity.path}");} catch (e) {}
491491
await entity.delete(recursive: true);
492492
} else if (entity is Directory) {
493493
if (await cleanupDirRecursive(entity, globs)) {

0 commit comments

Comments
 (0)