Raises LWTException if it looks like a failed LWT request. A LWTException won't be raised in the special case in which there are several failed LWT in a :class:`~cqlengine.query.BatchQuery`.
(result)
| 67 | |
| 68 | |
| 69 | def check_applied(result): |
| 70 | """ |
| 71 | Raises LWTException if it looks like a failed LWT request. A LWTException |
| 72 | won't be raised in the special case in which there are several failed LWT |
| 73 | in a :class:`~cqlengine.query.BatchQuery`. |
| 74 | """ |
| 75 | try: |
| 76 | applied = result.was_applied |
| 77 | except Exception: |
| 78 | applied = True # result was not LWT form |
| 79 | if not applied: |
| 80 | raise LWTException(result.one()) |
| 81 | |
| 82 | |
| 83 | class AbstractQueryableColumn(UnicodeMixin): |
no test coverage detected