Remove problematic code in exception printing (causes error for FlattenException)