(operation, *, trace: bool = True)
| 70 | |
| 71 | |
| 72 | async def _run(operation, *, trace: bool = True): |
| 73 | try: |
| 74 | result = await run_maybe_async(operation) |
| 75 | if isinstance(result, SkillsOperationResult): |
| 76 | return _serialize_result(result) |
| 77 | return ok(result) |
| 78 | except SkillsServiceError as exc: |
| 79 | return error(str(exc)) |
| 80 | except Exception as exc: |
| 81 | logger.error(str(exc), exc_info=trace) |
| 82 | return error(str(exc)) |
| 83 | |
| 84 | |
| 85 | def _archive_response(archive: SkillArchive): |
no test coverage detected