~spud/spud/1.0.24

Viewing all changes in revision 398.

  • Committer: Florian Rathgeber
  • Date: 2011-05-18 15:17:14 UTC
  • Revision ID: f.rathgeber10@imperial.ac.uk-20110518151714-ewn3v8wbm9dqjvsh
libspud.py: fixes bug #784609, adds messages to exceptions

When get_option is called with a path that does exist but does not
contain any value to retrieve, get_option_type will be None for that
path. Catch this case and raise a SpudTypeError exception. This makes
the behaviour equivalent to C/Fortran.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: