Get a value from process, return tuple of value, res if succesful
(res, tempname, process)
| 297 | |
| 298 | |
| 299 | def getResultFromProcess(res, tempname, process): |
| 300 | """Get a value from process, return tuple of value, res if succesful""" |
| 301 | if not isinstance(res, (UndefinedValue, Exception)): |
| 302 | value = getRepresentation(tempname, process) |
| 303 | return value, res |
| 304 | else: |
| 305 | return res, str(res) |
| 306 | |
| 307 | |
| 308 | # decorator to automatically get value after running process task function |
no test coverage detected