Why not just say `except (IOError, ValueError):` so that you don't have an unused variable? That's better than creating an unused variable and then silencing pylint's warning about it.