diff --git a/tofu/imas2tofu/_comp.py b/tofu/imas2tofu/_comp.py index 119672129..aeb6d2e6e 100644 --- a/tofu/imas2tofu/_comp.py +++ b/tofu/imas2tofu/_comp.py @@ -217,7 +217,15 @@ def fsig(obj, indt=None, indch=None, stack=None, dcond=dcond): raise Exception(msg) if len(ind) == 1: - sig[jj] = sig[jj][ind[0]] + # DB + try: + sig[jj] = sig[jj][ind[0]] + except Exception as err: + print() + print(ii, jj) + print(ind) + print(sig[jj]) + raise err else: if nsig != 1: msg = ("nsig should be 1!\n"