[h5py] 300/455: Fix LookupError on frozen code
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Thu Jul 2 18:19:44 UTC 2015
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to annotated tag 1.3.0
in repository h5py.
commit 8ff2e5ee284d99da8fa1fe496d9041fce30dab6e
Author: andrewcollette <andrew.collette at gmail.com>
Date: Wed Jul 22 06:24:04 2009 +0000
Fix LookupError on frozen code
---
h5py/highlevel.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/h5py/highlevel.py b/h5py/highlevel.py
index c4b2ead..57d6451 100644
--- a/h5py/highlevel.py
+++ b/h5py/highlevel.py
@@ -60,7 +60,7 @@ def is_hdf5(fname):
try:
try:
fname = fname.encode(sys.getfilesystemencoding())
- except UnicodeError:
+ except (UnicodeError, LookupError):
pass
return h5f.is_hdf5(fname)
except H5Error:
@@ -563,7 +563,7 @@ class File(Group):
try:
name = name.decode(sys.getfilesystemencoding())
return name.encode('ascii')
- except UnicodeError:
+ except (UnicodeError, LookupError):
return name
@property
@@ -616,7 +616,7 @@ class File(Group):
# If the byte string doesn't match the default encoding, just
# pass it on as-is. Note Unicode objects can always be encoded.
name = name.encode(sys.getfilesystemencoding())
- except UnicodeError:
+ except (UnicodeError, LookupError):
pass
if mode == 'r':
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/h5py.git
More information about the debian-science-commits
mailing list