How to catch EOFError Exception in Python?
If I run this code at the terminal as follows
#eofError.py
while True:
data = raw_input('prompt:')
print 'READ:', data
$ echo hello | python eofError.py
I get an error
How do I catch this exception and know its type?