| skipped 74 lines |
75 | 75 | | return response_clear |
76 | 76 | | |
77 | 77 | | def _parse_response(self, response): |
78 | | - | response = response.decode() |
| 78 | + | response = response.decode() if isinstance(response, bytes) else response |
79 | 79 | | if '{{{' + self._exception_class.__name__ + '}}}' in response: |
80 | 80 | | raise self._exception_class(str(response)) |
81 | 81 | | if '{{{SharPyShellError}}}' in response or '{{{PythonError}}}' in response: |
| skipped 17 lines |