diff options
author | Steven Knight <knight@baldmt.com> | 2005-08-20 23:10:35 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2005-08-20 23:10:35 (GMT) |
commit | c5f5ba58f1c8b4927ee22e3781a19c334352aa45 (patch) | |
tree | 0f8aba7fb052a1dfc6efa91287951f007a752892 /src/engine/SCons/Tool/hplink.py | |
parent | cfcbeb6ff0607e5a573768eb1dbaef6fe86089a2 (diff) | |
download | SCons-c5f5ba58f1c8b4927ee22e3781a19c334352aa45.zip SCons-c5f5ba58f1c8b4927ee22e3781a19c334352aa45.tar.gz SCons-c5f5ba58f1c8b4927ee22e3781a19c334352aa45.tar.bz2 |
Handle IOError exceptions when pushing files to CacheDir (and elsewhere).
Diffstat (limited to 'src/engine/SCons/Tool/hplink.py')
-rw-r--r-- | src/engine/SCons/Tool/hplink.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/engine/SCons/Tool/hplink.py b/src/engine/SCons/Tool/hplink.py index f3d03c9..5921b39 100644 --- a/src/engine/SCons/Tool/hplink.py +++ b/src/engine/SCons/Tool/hplink.py @@ -45,7 +45,9 @@ ccLinker = None try: dirs = os.listdir('/opt') -except OSError: +except (IOError, OSError): + # Not being able to read the directory because it doesn't exist + # (IOError) or isn't readable (OSError) is okay. dirs = [] for dir in dirs: |