[Yt-svn] commit/yt: xarthisius: h5.H5Error was removed in h5py-2.0 in favour of Python native exceptions
Bitbucket
commits-noreply at bitbucket.org
Wed Oct 5 12:42:40 PDT 2011
1 new changeset in yt:
http://bitbucket.org/yt_analysis/yt/changeset/ada1867336b9/
changeset: ada1867336b9
branch: yt
user: xarthisius
date: 2011-09-15 23:17:17
summary: h5.H5Error was removed in h5py-2.0 in favour of Python native exceptions
affected #: 1 file (-1 bytes)
--- a/yt/data_objects/hierarchy.py Wed Oct 05 15:07:13 2011 -0400
+++ b/yt/data_objects/hierarchy.py Thu Sep 15 23:17:17 2011 +0200
@@ -203,10 +203,6 @@
"""
if self._data_mode != 'a': return
- if "ArgsError" in dir(h5py.h5):
- exception = (h5py.h5.ArgsError, KeyError)
- else:
- exception = (h5py.h5.H5Error, KeyError)
try:
node_loc = self._data_file[node]
if name in node_loc and force:
@@ -214,7 +210,7 @@
del self._data_file[node][name]
elif name in node_loc and passthrough:
return
- except exception:
+ except:
pass
myGroup = self._data_file['/']
for q in node.split('/'):
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