Make sure name is string type, not bs4 class