Stefan-Endres / DWPM-Mixture-Model

Phase seperation calculation using the DWPM mixture rule.
7 stars 3 forks source link

Don't re-raise exceptions #22

Open alchemyst opened 8 years ago

alchemyst commented 8 years ago

There are far too many try statements in the code as it stands now which encompas too much code. Especially egregious are the parts where you catch an exception only to raise one again (see for instance in data_handling.py. In that case it is really bad because you print "Data not found" even if for instance the read failed for another reason.