pythonrc: catch ValueError

this way bpython can also be used without any error messages
occuring.