Convert exception to string in fix-internet.py