Update PromptfileCom.py

added error handling, thanks to stefano