KeyError could be suitable here
arijitlaik opened this issue · 2 comments
arijitlaik commented
Hi, I was recently trying to load a swarm variable without units and generated by an older version of underworld, the 'UndefinedUnitError' doesn't catch the exception which in my case threw a 'KeyError', changing this resulted in the loading to work as expected.
Sorry for not adding a file.
julesghub commented
Hi @arijitlaik ,
Thanks for pointing this out! We have a fix for this that I applied to the _meshvariable and _swarm. I missed making this change here. I can apply now.
arijitlaik commented
Thanks :)