MJOLNIRPackage / MJOLNIR

Neutron scattering software to be used at Multiplexing Joint Organization
Mozilla Public License 2.0
4 stars 5 forks source link

Misleading error message when trying to convert or open non-existing file #15

Closed Jakob-Lass closed 6 years ago

Jakob-Lass commented 6 years ago

When a file path to a non-existing file is passed to the DataSet.convertDataFile method, the resulting error is: AttributeError('Sample not understood')

resulting from a None when looking for an attribute in empty HDF file.

Wanted behavior: AttributeError('File ({}) not found.'.format(filepath)

Jakob-Lass commented 6 years ago

Incorporated in 960f4994360c85c65c6ff116b8e378f9bf363c16 where an attribute error is raised