diff options
author | Pierre-Yves David <pierre-yves.david@logilab.fr> | 2010-02-26 09:37:12 +0100 |
---|---|---|
committer | Pierre-Yves David <pierre-yves.david@logilab.fr> | 2010-02-26 09:37:12 +0100 |
commit | e10e4a4c304dd37af97ff364a6148492d2fa6cbe (patch) | |
tree | 0ed5d70e2f6595a7644a3e75c72ba8d7a5a93191 | |
parent | a530b1a417888c58ed213e366bd6402fa9070944 (diff) | |
download | pylint-e10e4a4c304dd37af97ff364a6148492d2fa6cbe.tar.gz |
Improve error handling for persistent options.
Add IOError
Add the exception message
-rw-r--r-- | config.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 ########################################## |