| 17 | import sys |
| 18 | |
| 19 | class ExecException(Exception): |
| 20 | def __init__(self, retcode, output): |
| 21 | self.retcode = retcode |
| 22 | self.output = output |
| 23 | def __init__(self, retcode): |
| 24 | self.retcode = retcode |
| 25 | self.output = '' |
| 26 | |
| 27 | def _to_str(x): |
| 28 | if x is None: |