From b708fb663a24b1132fa1b78a62b516afcd54344b Mon Sep 17 00:00:00 2001 From: Justin Lebar Date: Thu, 18 Oct 2012 16:12:37 -0400 Subject: [PATCH] Use the correct variable name in include/device_utils.py::run_and_delete_dir_on_exception(). --- tools/include/device_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/include/device_utils.py b/tools/include/device_utils.py index 7d9ef599..0585e35a 100644 --- a/tools/include/device_utils.py +++ b/tools/include/device_utils.py @@ -107,7 +107,7 @@ def run_and_delete_dir_on_exception(fun, dir): try: # Throws if the directory is not empty. - os.rmdir(out_dir) + os.rmdir(dir) except OSError: pass