Simplified sanitize_qualifiers removing try / except blocks.