catch attribute error in url split too.