Skip to content

Commit

Permalink
Merge 0e137ae into af45e89
Browse files Browse the repository at this point in the history
  • Loading branch information
hsim13372 committed Aug 16, 2017
2 parents af45e89 + 0e137ae commit 417a34a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/fermilib/utils/_molecular_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -649,8 +649,9 @@ def get_from_file(self, property_name):
try:
with h5py.File("{}.hdf5".format(self.filename), "r") as f:
data = f[property_name][...]
except KeyError:
except (KeyError, IOError):
data = None

return data

def get_n_alpha_electrons(self):
Expand Down

0 comments on commit 417a34a

Please sign in to comment.