[Yt-svn] commit/yt: MatthewTurk: Another issue with h5py-1.4, this one being a KeyError masquerading as an h5py
Bitbucket
commits-noreply at bitbucket.org
Tue Jun 7 21:23:18 PDT 2011
1 new changeset in yt:
http://bitbucket.org/yt_analysis/yt/changeset/20b3952476e6/
changeset: 20b3952476e6
branch: yt
user: MatthewTurk
date: 2011-06-08 06:23:09
summary: Another issue with h5py-1.4, this one being a KeyError masquerading as an h5py
error
affected #: 1 file (24 bytes)
--- a/yt/data_objects/hierarchy.py Tue Jun 07 21:13:46 2011 -0700
+++ b/yt/data_objects/hierarchy.py Tue Jun 07 21:23:09 2011 -0700
@@ -200,9 +200,9 @@
if self._data_mode != 'a': return
if "ArgsError" in dir(h5py.h5):
- exception = h5py.h5.ArgsError
+ exception = (h5py.h5.ArgsError, KeyError)
else:
- exception = h5py.h5.H5Error
+ exception = (h5py.h5.H5Error, KeyError)
try:
node_loc = self._data_file[node]
if name in node_loc and force:
Repository URL: https://bitbucket.org/yt_analysis/yt/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the yt-svn
mailing list