more gracefully handle bad URIs
timedelta has no attribute secs