Valentin David pushed to branch bst-1.2 at BuildStream / buildstream
Commits:
-
26d48cc9
by Valentin David at 2018-10-04T14:55:13Z
-
96f09d48
by Valentin David at 2018-10-04T15:16:46Z
1 changed file:
Changes:
... | ... | @@ -679,7 +679,7 @@ def _force_rmtree(rootpath, **kwargs): |
679 | 679 |
|
680 | 680 |
try:
|
681 | 681 |
shutil.rmtree(rootpath, **kwargs)
|
682 |
- except shutil.Error as e:
|
|
682 |
+ except OSError as e:
|
|
683 | 683 |
raise UtilError("Failed to remove cache directory '{}': {}"
|
684 | 684 |
.format(rootpath, e))
|
685 | 685 |
|