Add a check to catch a silent type error that would otherwise show up as a python internal error later in the code.
Add a check to catch a silent type error that would otherwise show up as a python internal error later in the code.



matthiaskramm/corepy,matthiaskramm/corepy,matthiaskramm/corepy,matthiaskramm/corepy