revert fix for #7526 as it is breaking pydsl, this check should

be added higher up[ the stack...