Skip to content

Commit 038d0ad

Browse files
committed
Replace WindowsError with generic exception handler
1 parent 024b3ad commit 038d0ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mbed/mbed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1037,7 +1037,7 @@ def set_cache(self, url):
10371037
if os.path.isdir(os.path.join(cpath, scm_dir)):
10381038
rmtree_readonly(os.path.join(cpath, scm_dir))
10391039
shutil.copytree(os.path.join(self.path, scm_dir), os.path.join(cpath, scm_dir))
1040-
except (IOError, OSError, WindowsError):
1040+
except Exception:
10411041
warning("Unable to cache \"%s\" to \"%s\"" % (self.path, cpath))
10421042
return False
10431043

0 commit comments

Comments
 (0)