jfinkels/flask-restless — pull request #125 by tinnet (2013-01-10 17:07:07+00:00)
Title: validation exception handler: also catch ValueError when splitting

Just a minor fix in case the exception's error message does not contain a colon :)
(e.g. sqlalchemy: "(IntegrityError) column uuid is not unique u'INSERT INTO [...]")

File "[...}/site-packages/flask_restless/views.py", line 702, in _extract_error_messages
left, right = exception.message.rsplit(':', 1)
ValueError: need more than 1 value to unpack

HTH :cake: