iputil.py: fix test failures due to calling log.err on a harmless error.

Signed-off-by: Daira Hopwood <david-sarah@jacaranda.org>