(exc)
| 30 | |
| 31 | |
| 32 | def pack_exception(exc): |
| 33 | if hasattr(exc, "pack"): |
| 34 | packed_exception = exc.pack() |
| 35 | else: |
| 36 | packed_exception = {"message": exc.__unicode__(), "args": exc.args} |
| 37 | return packed_exception |
| 38 | |
| 39 | |
| 40 | def fire_exception(exc, opts, job=None, node="minion"): |