Commit db2451d8 authored by payno's avatar payno

[core][pymca][k_weight] raise an error if process_spectr_exafs fails

parent 1ad5c164
......@@ -81,6 +81,9 @@ def process_spectr_k(spectrum, configuration, overwrite=True, callbacks=None,
# we need to update EXAFSNormalized since we are overwriting it
cf, exafs_res = process_spectr_exafs(spectrum=spectrum_,
configuration=configuration)
if exafs_res is None:
raise ValueError('Failed to process exafs')
# update EXAFSNormalized
e0 = pymca_xas.calculateE0()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment