summaryrefslogtreecommitdiffstats
path: root/src/engine
diff options
context:
space:
mode:
authorMats Wichmann <mats@linux.com>2019-04-19 16:25:28 (GMT)
committerMats Wichmann <mats@linux.com>2019-04-28 14:00:10 (GMT)
commitdc498d443efe453ced4bf1e329269c974427ff6b (patch)
treedc7b66436865ce98fe703a4904a2bdea5a78c485 /src/engine
parentce51b20a0b22a3eecd8602bdca7a6ff3906113af (diff)
downloadSCons-dc498d443efe453ced4bf1e329269c974427ff6b.zip
SCons-dc498d443efe453ced4bf1e329269c974427ff6b.tar.gz
SCons-dc498d443efe453ced4bf1e329269c974427ff6b.tar.bz2
[PR #3353] quiet sider complaint about bare except:
Signed-off-by: Mats Wichmann <mats@linux.com>
Diffstat (limited to 'src/engine')
-rw-r--r--src/engine/SCons/CacheDir.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/engine/SCons/CacheDir.py b/src/engine/SCons/CacheDir.py
index f2d3810..ffbb2f0 100644
--- a/src/engine/SCons/CacheDir.py
+++ b/src/engine/SCons/CacheDir.py
@@ -188,7 +188,7 @@ class CacheDir(object):
self.config['prefix_len'] = 2
try:
json.dump(self.config, config)
- except:
+ except Exception:
msg = "Failed to write cache configuration for " + path
raise SCons.Errors.EnvironmentError(msg)
except FileExistsError:
@@ -247,7 +247,7 @@ class CacheDir(object):
try:
with open(config_file, 'w') as config:
json.dump(self.config, config)
- except:
+ except Exception:
msg = "Failed to write cache configuration for " + path
raise SCons.Errors.SConsEnvironmentError(msg)
else: