Make assertion on empty url file more verbose
Mistakenly removed the needed sys import