Update pomf.py

Doesn't go in a loop after errors.