preprocess.py: Change type in error handling.