Update putfile.py

Fixed typo. Added "as" to except clause.