Fixed issue with peek where bad input would cause a traceback.
Where bad input == non-integer input.