]> scripts.mit.edu Git - wizard.git/commitdiff
Fix name error.
authorEdward Z. Yang <ezyang@mit.edu>
Sat, 6 Feb 2010 23:51:02 +0000 (18:51 -0500)
committerEdward Z. Yang <ezyang@mit.edu>
Sat, 6 Feb 2010 23:51:02 +0000 (18:51 -0500)
Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
wizard/scripts.py

index 40ba4545a6e6b5b297ab14e5cadf098925e17a14..0834b250430137532dad646199d347fef5bb0708 100644 (file)
@@ -119,7 +119,7 @@ def get_disk_usage(dir=None, excluded_dir=".git"):
                 try:
                     sum_sizes += os.path.getsize(file)
                 except OSError as e:
-                    if e.ENOENT:
+                    if e.errno == errno.ENOENT:
                         logging.warning("%s disappeared before we could stat", file)
                     else:
                         raise