Implemented graceful handling of errrors in priority lists for issue #37.
Merge pull request #39 from emiln/api/37-error-handling

Implemented graceful handling of errrors in priority lists.