okfn/bibserver — Issue #190: bibserver.dao does not always seem to save DomainObjects
Author: epoz
Created: 2012-02-14 15:36:53+00:00
State: open
Labels: errors

In development of the AsyncUpload branch, I have noticed that bibserver.dao DomainObjects do not seem to reliably save state.
For example in https://github.com/okfn/bibserver/blob/asyncupload/bibserver/ingest.py#L102 we catch the exception of tickets failing and set their state correspondingly. There is a test for this, and it works.

However, when using the ingest script, tickets that fail downloading, (with a bogus URL like 'abc') are nog flagged as 'failed' state, but have an erroneous state of 'downloading'