diff options
| -rw-r--r-- | meta/lib/oe/cachedpath.py | 4 | 
1 files changed, 1 insertions, 3 deletions
| diff --git a/meta/lib/oe/cachedpath.py b/meta/lib/oe/cachedpath.py index c7860ef4fb..0840cc4c3f 100644 --- a/meta/lib/oe/cachedpath.py +++ b/meta/lib/oe/cachedpath.py @@ -122,10 +122,8 @@ class CachedPath(object):          # minor reason when (say) a thousand readable directories are still          # left to visit.  That logic is copied here.          try: -            # Note that listdir and error are globals in this module due -            # to earlier import-*.              names = os.listdir(top) -        except error as err: +        except os.error as err:              if onerror is not None:                  onerror(err)              return | 
