(f, *args, **kwargs)
| 341 | |
| 342 | @process_task |
| 343 | def get_error(f, *args, **kwargs): |
| 344 | res = f(*args, **kwargs) |
| 345 | return (res, str(res)) if isinstance(res, Exception) else (None, res) |
| 346 | |
| 347 | |
| 348 | # General tasks to eval or exec code, with decorated counterparts ------------- |