From: Edward Z. Yang Date: Sat, 6 Feb 2010 23:51:02 +0000 (-0500) Subject: Fix name error. X-Git-Url: https://scripts.mit.edu/gitweb/wizard.git/commitdiff_plain/6513fce85a7b9c884c29a4da22e24032e88f93bf Fix name error. Signed-off-by: Edward Z. Yang --- diff --git a/wizard/scripts.py b/wizard/scripts.py index 40ba454..0834b25 100644 --- a/wizard/scripts.py +++ b/wizard/scripts.py @@ -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