summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre-Yves David <pierre-yves.david@logilab.fr>2010-02-26 09:37:12 +0100
committerPierre-Yves David <pierre-yves.david@logilab.fr>2010-02-26 09:37:12 +0100
commite10e4a4c304dd37af97ff364a6148492d2fa6cbe (patch)
tree0ed5d70e2f6595a7644a3e75c72ba8d7a5a93191
parenta530b1a417888c58ed213e366bd6402fa9070944 (diff)
downloadpylint-e10e4a4c304dd37af97ff364a6148492d2fa6cbe.tar.gz
Improve error handling for persistent options.
Add IOError Add the exception message
-rw-r--r--config.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/config.py b/config.py
index c62cfae..97474a4 100644
--- a/config.py
+++ b/config.py
@@ -65,8 +65,8 @@ def save_results(results, base):
data_file = get_pdata_path(base, 1)
try:
pickle.dump(results, open(data_file, 'w'))
- except OSError:
- print >> sys.stderr, 'Unable to create file %s' % data_file
+ except (IOError, OSError), ex:
+ print >> sys.stderr, 'Unable to create file %s: %s' % (data_file, ex)
# location of the configuration file ##########################################