The reason is that at some point one of the method will return None or [None] and the next method will fail when attempting to apply to convert int to int or executing a replacement or search over.
I think is reasonable to expect shublang to stop processing data if None is reached at some point as we can't always assume the input data will be 100% accurate.
Alternatively, we could implement a stop-if-none method in case we want to manually set the breaking points.
The following expression and all the variation over it that I have tested always produced an
'NoneType' object is not subscriptable
error in logs.or
They work with the following expected data:
The reason is that at some point one of the method will return
None
or[None]
and the next method will fail when attempting to apply to convert int to int or executing a replacement or search over.I think is reasonable to expect shublang to stop processing data if None is reached at some point as we can't always assume the input data will be 100% accurate.
Alternatively, we could implement a stop-if-none method in case we want to manually set the breaking points.