You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After I updated unitxt from 1.7.6 to 1.7.7, if there is no preprocess_steps, test_card() fails with
File "/Users/marukaz/ghq/github.com/marukaz/unitxt/src/unitxt/standard.py", line 293, in prepare
super().prepare()
File "/Users/marukaz/ghq/github.com/marukaz/unitxt/src/unitxt/standard.py", line 215, in prepare
self.standardization.steps.extend(self.card.preprocess_steps)
TypeError: 'NoneType' object is not iterable
After I updated unitxt from 1.7.6 to 1.7.7, if there is no
preprocess_steps
,test_card()
fails withExample card:
The cause is
None
check has been removed in this PR https://github.com/IBM/unitxt/pull/739/files#diff-a4122a708bc5f51b81dc0316fb8034bff822104b0e9d82bbe30d44761979ec36L144I think either the code for the None check should be reinstated, or the default for
preprocess_steps
should be changed fromNone
to an empty list.The text was updated successfully, but these errors were encountered: